From 37fe71649583f17feacb378126ed01d9848e604e Mon Sep 17 00:00:00 2001 From: David Xu Date: Wed, 8 Mar 2006 00:34:54 +0000 Subject: [PATCH] Set SNF_SYNC flag for timer, as the timer notification should be serialized. --- lib/librt/timer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librt/timer.c b/lib/librt/timer.c index 4b50866f6ad..f02e7616bd1 100644 --- a/lib/librt/timer.c +++ b/lib/librt/timer.c @@ -121,6 +121,7 @@ __timer_create(clockid_t clockid, struct sigevent *evp, timer_t *timerid) errno = err; return (-1); } + sn->sn_flags |= SNF_SYNC; sn->sn_dispatch = timer_dispatch; sn->sn_id = timer->oshandle; timer->node = sn;