diff options
Diffstat (limited to 'nptl/eintr.c')
-rw-r--r-- | nptl/eintr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/eintr.c b/nptl/eintr.c index 9e5d6af..933c5d8 100644 --- a/nptl/eintr.c +++ b/nptl/eintr.c @@ -42,6 +42,14 @@ eintr_source (void *arg) { struct timespec ts = { .tv_sec = 0, .tv_nsec = 500000 }; + if (arg == NULL) + { + sigset_t ss; + sigemptyset (&ss); + sigaddset (&ss, the_sig); + pthread_sigmask (SIG_BLOCK, &ss, NULL); + } + while (1) { if (arg != NULL) |