summaryrefslogtreecommitdiffstats
path: root/lib/librt/sigev_thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/librt/sigev_thread.c')
-rw-r--r--lib/librt/sigev_thread.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/librt/sigev_thread.c b/lib/librt/sigev_thread.c
index 695a643..f942e57 100644
--- a/lib/librt/sigev_thread.c
+++ b/lib/librt/sigev_thread.c
@@ -417,9 +417,10 @@ sigev_service_loop(void *arg)
__sigev_list_unlock();
sn->sn_dispatch(sn, &si);
after_dispatch(tn);
- } else
+ } else {
tn->tn_cur = NULL;
- __sigev_list_unlock();
+ __sigev_list_unlock();
+ }
}
pthread_cleanup_pop(0);
return (0);
OpenPOWER on IntegriCloud