aboutsummaryrefslogtreecommitdiff
path: root/nptl/eintr.c
diff options
context:
space:
mode:
Diffstat (limited to 'nptl/eintr.c')
-rw-r--r--nptl/eintr.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/nptl/eintr.c b/nptl/eintr.c
index 9e5d6af09a..933c5d81b3 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)