diff options
author | Bill Nottingham <notting@redhat.com> | 1999-07-24 02:46:01 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-07-24 02:46:01 +0000 |
commit | 471c05a3054ddd37c78f31b907d77ab11cf38807 (patch) | |
tree | 30383c49f08b483f5394346defb6d11867a570be | |
parent | 03d8a966e3a8c1d2c14b1714af3f57e55aee1f95 (diff) | |
download | initscripts-471c05a3054ddd37c78f31b907d77ab11cf38807.tar initscripts-471c05a3054ddd37c78f31b907d77ab11cf38807.tar.gz initscripts-471c05a3054ddd37c78f31b907d77ab11cf38807.tar.bz2 initscripts-471c05a3054ddd37c78f31b907d77ab11cf38807.tar.xz initscripts-471c05a3054ddd37c78f31b907d77ab11cf38807.zip |
oops, logging was broken 'cos we were passing bogus command line
-rw-r--r-- | src/process.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c index 73c46945..d7e9f703 100644 --- a/src/process.c +++ b/src/process.c @@ -163,12 +163,13 @@ int monitor(char *cmdname, int pid, int numfds, int *fds, int reexec, int quiet, cmdargc=0; poptParseArgvString(tmpstr,&cmdargc,&tmpargs); - cmdargs=malloc( (cmdargc+1) * sizeof(char *) ); + cmdargs=malloc( (cmdargc+2) * sizeof(char *) ); cmdargs[0]=strdup("initlog"); for (z=0;z<(cmdargc);z++) { cmdargs[z+1]=tmpargs[z]; } - processArgs(cmdargc,cmdargs,1); + cmdargs[cmdargc+1]=NULL; + processArgs(cmdargc+1,cmdargs,1); } } } |