From 8ff50eae943a153365b4cfac783a9fe96d4808a6 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Thu, 19 Aug 1999 18:51:12 +0000 Subject: I don't remember smoking crack, but I must have been... --- src/process.c | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/src/process.c b/src/process.c index 8afb4392..ef7d9e26 100644 --- a/src/process.c +++ b/src/process.c @@ -114,7 +114,7 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) { int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet, int debug) { struct pollfd *pfds; char *buf=malloc(8192*sizeof(char)); - int outpipe[2]; + char *outbuf=NULL; char *tmpstr=NULL; int x,y,rc=-1; int done=0; @@ -129,8 +129,6 @@ int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet, snprintf(procpath,20,"/proc/%d",pid); } - pipe(outpipe); - pfds = malloc(numfds*sizeof(struct pollfd)); for (x=0;x