Changeset - d18bf2f45283
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2010-09-03 00:08:20
ohnobinki@ohnopublishing.net
execio: Remove some debug messages.
1 file changed with 3 insertions and 7 deletions:
0 comments (0 inline, 0 general)
src/common/execio.c
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)