diff options
author | mjacob <mjacob@FreeBSD.org> | 2007-06-10 01:43:11 +0000 |
---|---|---|
committer | mjacob <mjacob@FreeBSD.org> | 2007-06-10 01:43:11 +0000 |
commit | 8578bcf99369c7b3386e9b4523cef3f77f0f604a (patch) | |
tree | 217ec608eade28709172357154e62d507956ed42 /sys/kern | |
parent | ad6b0e936718519564504df74cca7f827a79ac99 (diff) | |
download | FreeBSD-src-8578bcf99369c7b3386e9b4523cef3f77f0f604a.zip FreeBSD-src-8578bcf99369c7b3386e9b4523cef3f77f0f604a.tar.gz |
Initialized ets to zero. This is arguably a gcc bug in that ets is always
set to rts when timeout is non-NULL and then timevalid is set and ets is
only checked later when timervalid is set.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_sig.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 8c6f439..33948eb 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -1174,6 +1174,8 @@ kern_sigtimedwait(struct thread *td, sigset_t waitset, ksiginfo_t *ksi, p = td->td_proc; error = 0; sig = 0; + ets.tv_sec = 0; + ets.tv_nsec = 0; SIG_CANTMASK(waitset); PROC_LOCK(p); |