summaryrefslogtreecommitdiff
path: root/scsh-process.scm
diff options
context:
space:
mode:
authorPeter Bex <peter@more-magic.net>2017-11-10 21:08:02 +0100
committerPeter Bex <peter@more-magic.net>2017-11-10 21:08:02 +0100
commit4e420e4d032b550fa6e0193a3bbf04f4db76cc8b (patch)
tree20f69ee7411a93bb6868d04ac5427a8d23eb0cbd /scsh-process.scm
parenta29a4e79aa00d697a564cb3bd7f1f78d7e5d7245 (diff)
downloadscsh-process-4e420e4d032b550fa6e0193a3bbf04f4db76cc8b.tar.gz
Also unmask (if needed) sigchld in the child process thunk
This would be otherwise kept in masked mode because the thunk is in the dynamic extent of the dynamic-wind.
Diffstat (limited to 'scsh-process.scm')
-rw-r--r--scsh-process.scm2
1 files changed, 2 insertions, 0 deletions
diff --git a/scsh-process.scm b/scsh-process.scm
index 5bfd7e9..3682c68 100644
--- a/scsh-process.scm
+++ b/scsh-process.scm
@@ -240,6 +240,8 @@
(thunk (and thunk (lambda ()
(clear-scsh-pending-processes!)
(maybe-reinstall-deadlock-workaround!)
+ (unless sigchld-was-masked?
+ (signal-unmask! signal/chld))
(thunk))))
(pid (cond-expand
(has-thread-killer