* sigproc.cc (remove_proc): Don't do busy loop when execing since thread could
have been terminated prior to setting flag. * signal.cc (sigwaitinfo): Zero event before closing to signal other threads that it is no longer available.
This commit is contained in:
@@ -608,6 +608,8 @@ sigwaitinfo (const sigset_t *set, siginfo_t *info)
|
||||
__seterrno ();
|
||||
res = -1;
|
||||
}
|
||||
|
||||
_my_tls.event = NULL;
|
||||
CloseHandle (h);
|
||||
sigproc_printf ("returning signal %d", res);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user