aboutsummaryrefslogtreecommitdiffstats
path: root/makewrappers
diff options
context:
space:
mode:
authorseebs <seebs@seebs-eee.(none)>2010-08-24 16:02:38 -0500
committerseebs <seebs@seebs-eee.(none)>2010-08-25 16:48:37 -0500
commit1e7f35ab310b1af580799f10e801b182f45a08f1 (patch)
tree48b460ffd62a157eeb23816b6694d1597bc8f974 /makewrappers
parent466472fb9b39656f0c90216b64615b3e0909997f (diff)
downloadpseudo-1e7f35ab310b1af580799f10e801b182f45a08f1.tar.gz
pseudo-1e7f35ab310b1af580799f10e801b182f45a08f1.tar.bz2
pseudo-1e7f35ab310b1af580799f10e801b182f45a08f1.zip
Initial attempt at fixing problems with SIGCHLD being blocked
in processes started under pseudo.
Diffstat (limited to 'makewrappers')
-rwxr-xr-xmakewrappers4
1 files changed, 3 insertions, 1 deletions
diff --git a/makewrappers b/makewrappers
index 60e8938..5b023b4 100755
--- a/makewrappers
+++ b/makewrappers
@@ -318,6 +318,8 @@ EOF
sigprocmask(SIG_SETMASK, &saved, NULL);
$(write_return $default_value);
}
+ /* this may get restored if we end up calling exec*() */
+ pseudo_saved_sigmask = saved;
$decl_paths
if (pseudo_populate_wrappers()) {
int save_errno;
@@ -341,8 +343,8 @@ $free_paths
save_errno = errno;
pseudo_droplock();
sigprocmask(SIG_SETMASK, &saved, NULL);
- errno = save_errno;
pseudo_debug(4, "completed: $name\n");
+ errno = save_errno;
$(write_return rc);
} else {
pseudo_droplock();