summaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-02-04 21:48:05 +0000
committerRoy Marples <roy@marples.name>2008-02-04 21:48:05 +0000
commit4c6a66c3e93edfd9ca3b409020cc9281b650cf45 (patch)
tree911657e81aafc757f94a7c54788d7f59b9d04246 /src/librc/librc.c
parent08a5bdbcb3462ea6ba5d97e86ce44d1d26b627e0 (diff)
downloadopenrc-4c6a66c3e93edfd9ca3b409020cc9281b650cf45.tar.gz
openrc-4c6a66c3e93edfd9ca3b409020cc9281b650cf45.tar.bz2
openrc-4c6a66c3e93edfd9ca3b409020cc9281b650cf45.tar.xz
Just restore the old set.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index 1fdb8db..1be0cab 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);