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.
This commit is contained in:
parent
ad6b0e9367
commit
8578bcf993
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user