diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-10-23 04:22:56 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-10-23 04:22:56 +0000 |
commit | cf50eec401d4d7384b3badbb5929bc33849a5855 (patch) | |
tree | 0646598ac68425c9b342b7f7d89ec9d97e5673e1 /sys/kern/kern_exec.c | |
parent | 79343f4d094c11448cf9581def4af5ee487e1cb7 (diff) | |
download | FreeBSD-src-cf50eec401d4d7384b3badbb5929bc33849a5855.zip FreeBSD-src-cf50eec401d4d7384b3badbb5929bc33849a5855.tar.gz |
Implement POSIX timers. Current only CLOCK_REALTIME and CLOCK_MONOTONIC
clock are supported. I have plan to merge XSI timer ITIMER_REAL and other
two CPU timers into the new code, current three slots are available for
the XSI timers.
The SIGEV_THREAD notification type is not supported yet because our
sigevent struct lacks of two member fields:
sigev_notify_function
sigev_notify_attributes
I have found the sigevent is used in AIO, so I won't add the two members
unless the AIO code is adjusted.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r-- | sys/kern/kern_exec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c index 0d0ce88..18df172 100644 --- a/sys/kern/kern_exec.c +++ b/sys/kern/kern_exec.c @@ -480,6 +480,9 @@ interpret: */ fdunshare(p, td); + /* Clear POSIX timers */ + itimers_event_hook(p, ITIMER_EV_EXEC); + /* * Malloc things before we need locks. */ |