~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
polypath: Close parent's socket in child
[secnet]
/
polypath.c
diff --git
a/polypath.c
b/polypath.c
index
770ffc2
..
58a89ee
100644
(file)
--- a/
polypath.c
+++ b/
polypath.c
@@
-475,6
+475,7
@@
static void start_subproc(struct polypath *st, void (*make_fdpair)(int[2]),
pid_t pid=fork();
if (!pid) {
afterfork();
+ close(pfds[0]);
child(st,pfds[1]);
abort();
}