* signal.cc (clock_nanosleep): Force return on signal rather than letting
cancelable_wait loop on signal.
This commit is contained in:
parent
a654829ade
commit
8f748bdaca
|
@ -1,3 +1,8 @@
|
|||
2012-07-25 Christopher Faylor <me.cygwin2012@cgf.cx>
|
||||
|
||||
* signal.cc (clock_nanosleep): Force return on signal rather than
|
||||
letting cancelable_wait loop on signal.
|
||||
|
||||
2012-07-25 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* syscalls.cc (enum bin_status): Add dir_not_empty.
|
||||
|
|
|
@ -120,7 +120,7 @@ clock_nanosleep (clockid_t clk_id, int flags, const struct timespec *rqtp,
|
|||
|
||||
syscall_printf ("clock_nanosleep (%ld.%09ld)", rqtp->tv_sec, rqtp->tv_nsec);
|
||||
|
||||
int rc = cancelable_wait (NULL, &timeout, cw_sig | cw_cancel | cw_cancel_self);
|
||||
int rc = cancelable_wait (NULL, &timeout, cw_sig_eintr | cw_cancel | cw_cancel_self);
|
||||
if (rc == WAIT_SIGNALED)
|
||||
res = EINTR;
|
||||
|
||||
|
|
Loading…
Reference in New Issue