diff options
author | davidxu <davidxu@FreeBSD.org> | 2006-03-08 00:34:54 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2006-03-08 00:34:54 +0000 |
commit | e99490121bd9174c7e0ed2fc6f4932c4ca6b25ad (patch) | |
tree | cef1872c6458cfe6522badd9786b0bb8129acd26 /lib/librt | |
parent | 16da845ce6442f51b01f649c54736276ae0bedfa (diff) | |
download | FreeBSD-src-e99490121bd9174c7e0ed2fc6f4932c4ca6b25ad.zip FreeBSD-src-e99490121bd9174c7e0ed2fc6f4932c4ca6b25ad.tar.gz |
Set SNF_SYNC flag for timer, as the timer notification should be
serialized.
Diffstat (limited to 'lib/librt')
-rw-r--r-- | lib/librt/timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/librt/timer.c b/lib/librt/timer.c index 4b50866..f02e761 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; |