(doexecute): Fix to set input_fd on failure, so that play() terminates

the execute correctly.  Closes #723756.
This commit is contained in:
Markus Armbruster 2007-11-17 18:57:06 +00:00
parent 94cf6d1ad8
commit aef5b18c1e

View file

@ -225,6 +225,8 @@ dopipe(char *p)
static void static void
doexecute(char *p) doexecute(char *p)
{ {
input_fd = -1; /* make sure play() terminates exec */
if (!seen_input(p)) { if (!seen_input(p)) {
fprintf(stderr, fprintf(stderr,
"WARNING! Server attempted to read file %s", "WARNING! Server attempted to read file %s",