diff options
Diffstat (limited to 'lib/libc_r/uthread/uthread_sigsuspend.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_sigsuspend.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc_r/uthread/uthread_sigsuspend.c b/lib/libc_r/uthread/uthread_sigsuspend.c index 14cf74b..f7a7b12 100644 --- a/lib/libc_r/uthread/uthread_sigsuspend.c +++ b/lib/libc_r/uthread/uthread_sigsuspend.c @@ -53,6 +53,9 @@ sigsuspend(const sigset_t * set) /* Wait for a signal: */ _thread_kern_sched_state(PS_SIGWAIT, __FILE__, __LINE__); + /* Always return an interrupted error: */ + errno = EINTR; + /* Restore the signal mask: */ _thread_run->sigmask = oset; } else { |