# HG changeset patch # User Nathan Phillip Brink # Date 2010-09-03 00:08:20 # Node ID d18bf2f45283541cc9a632ba610181985d11db0c # Parent 86de9c9f23c54bcf4ab13ceb189f98ae2a99b2b6 execio: Remove some debug messages. diff --git a/src/common/execio.c b/src/common/execio.c --- a/src/common/execio.c +++ b/src/common/execio.c @@ -133,9 +133,6 @@ int execio_open(struct execio **rem, con counter --; } - /* stderr is the only stream we haven't confiscated atm - just for fun - I will confiscate it later, though, to support parsing error messages */ - fprintf(stderr, "closed %d/%d fds before execing \"%s\"\n", counter2, maxfds, progname); - /* now exec: execvp uses interpreter to find the file to exec */ @@ -215,9 +212,9 @@ int execio_write(struct execio *eio, con /* the program closed the pipe (died) */ - fprintf(stderr, "execio_write: the child program closed its stdin pipe\n"); - eio->state = EXECIO_STATE_EOF; - break; + fprintf(stderr, "execio_write: the child program closed its stdin pipe\n"); + eio->state = EXECIO_STATE_EOF; + break; default: fprintf(stderr, "execio_write: unhandled error writing to an fd: \n"); @@ -253,7 +250,6 @@ int execio_close(struct execio *eio) the waitpid(2) seems to indicate that only when the child is terminated will this wait return. This are of code will probably need improving - the ability to seng SIGKILL after a timeout? So we'll output a debug line before running waitpid */ - fprintf(stderr, "execio_close: running waitpid\n"); waitpid(eio->child, &childstatus, 0); free(eio);