run-program leaked a pipe per call
authorNikodemus Siivola <nikodemus@random-state.net>
Wed, 7 Dec 2011 17:48:39 +0000 (19:48 +0200)
committerNikodemus 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

index 4e6f829..00692b7 100644 (file)
@@ -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