projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9d8d47
)
run-program leaked a pipe per call
author
Nikodemus Siivola
<nikodemus@random-state.net>
Wed, 7 Dec 2011 17:48:39 +0000
(19:48 +0200)
committer
Nikodemus Siivola
<nikodemus@random-state.net>
Wed, 7 Dec 2011 17:48:39 +0000
(19:48 +0200)
exec-failure detection neglected to close the other side of the pipe.
src/runtime/run-program.c
patch
|
blob
|
history
diff --git
a/src/runtime/run-program.c
b/src/runtime/run-program.c
index
4e6f829
..
00692b7
100644
(file)
--- a/
src/runtime/run-program.c
+++ b/
src/runtime/run-program.c
@@
-138,6
+138,7
@@
int spawn(char *program, char *argv[], int sin, int sout, int serr,
p += n;
}
}
+ close(channel[0]);
if (child_errno) {
waitpid(pid, NULL, 0);
/* Our convention to tell Lisp that it was the exec that