From 4c6a66c3e93edfd9ca3b409020cc9281b650cf45 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 4 Feb 2008 21:48:05 +0000 Subject: Just restore the old set. --- src/librc/librc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/librc') diff --git a/src/librc/librc.c b/src/librc/librc.c index 1fdb8db0..1be0cab9 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -602,7 +602,6 @@ static pid_t _exec_service (const char *service, const char *arg) memset (&sa, 0, sizeof (sa)); sa.sa_handler = SIG_DFL; sigemptyset (&sa.sa_mask); - sigemptyset (&empty); sigfillset (&full); sigprocmask (SIG_SETMASK, &full, &old); @@ -617,7 +616,7 @@ static pid_t _exec_service (const char *service, const char *arg) sigaction (SIGWINCH, &sa, NULL); /* Unmask signals */ - sigprocmask (SIG_SETMASK, &empty, NULL); + sigprocmask (SIG_SETMASK, &old, NULL); /* Safe to run now */ execl (file, file, arg, (char *) NULL); -- cgit v1.2.3