aboutsummaryrefslogtreecommitdiffstats
path: root/guts/execvp.c
diff options
context:
space:
mode:
Diffstat (limited to 'guts/execvp.c')
-rw-r--r--guts/execvp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/guts/execvp.c b/guts/execvp.c
index 1ab34d3..8f0baa4 100644
--- a/guts/execvp.c
+++ b/guts/execvp.c
@@ -14,6 +14,10 @@
pseudo_dropenv();
}
+ /* 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_execvp(file, argv);
/* return rc;