diff options
Diffstat (limited to 'guts/execve.c')
-rw-r--r-- | guts/execve.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guts/execve.c b/guts/execve.c index 7cb6632..da407f5 100644 --- a/guts/execve.c +++ b/guts/execve.c @@ -21,6 +21,10 @@ new_environ = pseudo_dropenvp(new_environ); } + /* if exec() fails, we may end up taking signals unexpectedly... + * not much we can do about that. + */ + sigprocmask(SIG_SETMASK, &pseudo_saved_sigmask, NULL); rc = real_execve(filename, argv, new_environ); /* return rc; |