aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-18 14:14:09 +0000
committerBill Nottingham <notting@redhat.com>1999-10-18 14:14:09 +0000
commit099e59262fdcf13bce70ae4c1da3140b431a59e9 (patch)
treeeb37eb159558b83d7ca700e3d2a02e31451e1fcf
parenta6425af7666377545016cb1ca0db7926464d9ad0 (diff)
downloadinitscripts-099e59262fdcf13bce70ae4c1da3140b431a59e9.tar
initscripts-099e59262fdcf13bce70ae4c1da3140b431a59e9.tar.gz
initscripts-099e59262fdcf13bce70ae4c1da3140b431a59e9.tar.bz2
initscripts-099e59262fdcf13bce70ae4c1da3140b431a59e9.tar.xz
initscripts-099e59262fdcf13bce70ae4c1da3140b431a59e9.zip
*** empty log message ***
-rw-r--r--src/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 307fd98d..9806e828 100644
--- a/src/process.c
+++ b/src/process.c
@@ -79,6 +79,7 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) {
* fucks up and we segfault or something, we don't kill rc.sysinit. */
if ( (cmdfd&&!pid) || (pid &&!cmdfd)) {
/* parent */
+ close(fdin);
close(fdout);
close(fderr);
close(fdcmd);
@@ -132,7 +133,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;
+ char *buf;=malloc(8192*sizeof(char));
char *outbuf=NULL;
char *tmpstr=NULL;
int x,y,rc=-1;