chiark
/
gitweb
/
~mdw
/
tripe
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d4b7d
)
client/tripectl.c: Unblock SIGCHLD in child.
author
Mark Wooding
<mdw@distorted.org.uk>
Tue, 13 Mar 2012 02:27:13 +0000
(
02:27
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Tue, 13 Mar 2012 02:27:13 +0000
(
02:27
+0000)
Otherwise it accumulates zombies like they're going out of fashion.
client/tripectl.c
patch
|
blob
|
blame
|
history
diff --git
a/client/tripectl.c
b/client/tripectl.c
index ea86ec5c4fa6c563acaaed49b6c7af7351f487c6..f818de8d8c91f8a2fb765e9e709907825109675e 100644
(file)
--- a/
client/tripectl.c
+++ b/
client/tripectl.c
@@
-520,6
+520,7
@@
int main(int argc, char *argv[])
die(EXIT_FAILURE, "fork failed: %s", strerror(errno));
if (!kid) {
close(pfd[0]); close(efd[0]);
+ sigprocmask(SIG_SETMASK, &oldmask, 0);
md[0].cur = pfd[1]; md[0].want = STDIN_FILENO;
md[1].cur = pfd[1]; md[1].want = STDOUT_FILENO;
md[2].cur = efd[1]; md[2].want = STDERR_FILENO;