aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-10-18 14:55:14 +0000
committerBill Nottingham <notting@redhat.com>1999-10-18 14:55:14 +0000
commit122688e5b6a326e6ed6b99a8e479cf140529f5fc (patch)
tree56c5e18aaecfd05a038febe5547e6002122da7cb
parent099e59262fdcf13bce70ae4c1da3140b431a59e9 (diff)
downloadinitscripts-122688e5b6a326e6ed6b99a8e479cf140529f5fc.tar
initscripts-122688e5b6a326e6ed6b99a8e479cf140529f5fc.tar.gz
initscripts-122688e5b6a326e6ed6b99a8e479cf140529f5fc.tar.bz2
initscripts-122688e5b6a326e6ed6b99a8e479cf140529f5fc.tar.xz
initscripts-122688e5b6a326e6ed6b99a8e479cf140529f5fc.zip
*** empty log message ***
-rw-r--r--src/process.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/process.c b/src/process.c
index 9806e828..47518b60 100644
--- a/src/process.c
+++ b/src/process.c
@@ -26,11 +26,6 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) {
int outpipe[2], errpipe[2], fdpipe[2];
int ourpid;
- if ( (pipe(outpipe)==-1) || (pipe(errpipe)==-1) || (pipe(fdpipe)==-1) ) {
- perror("pipe");
- return -1;
- }
-
if (outfd) {
if (pipe(outpipe)==-1) {
perror("pipe");
@@ -79,7 +74,6 @@ 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);
@@ -133,7 +127,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));
+ char *buf;
char *outbuf=NULL;
char *tmpstr=NULL;
int x,y,rc=-1;