diff options
author | Bill Nottingham <notting@redhat.com> | 1999-10-18 14:10:41 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 1999-10-18 14:10:41 +0000 |
commit | a6425af7666377545016cb1ca0db7926464d9ad0 (patch) | |
tree | 8c9db88ed5b3d4d4193fa695a2d840c73e6de1b3 | |
parent | 637a53e54a0bbb828dbacb927b347c7b4e7eaf3b (diff) | |
download | initscripts-a6425af7666377545016cb1ca0db7926464d9ad0.tar initscripts-a6425af7666377545016cb1ca0db7926464d9ad0.tar.gz initscripts-a6425af7666377545016cb1ca0db7926464d9ad0.tar.bz2 initscripts-a6425af7666377545016cb1ca0db7926464d9ad0.tar.xz initscripts-a6425af7666377545016cb1ca0db7926464d9ad0.zip |
*** empty log message ***
-rw-r--r-- | ChangeLog | 12 | ||||
-rw-r--r-- | initscripts.spec | 5 | ||||
-rw-r--r-- | src/process.c | 5 |
3 files changed, 18 insertions, 4 deletions
@@ -1,3 +1,15 @@ +1999-10-18 Bill Nottingham <notting@redhat.com> + + * src/process.c: + some fixes from Tymm Twillman (in theory, we leak less now) + + * rc.d/init.d/network: + handle weird linuxconf 'any' static routes + +1999-10-17 Bill Nottingham <notting@redhat.com> + + * src/process.c: oops. DWIM, not as I say. + 1999-10-14 Bill Nottingham <notting@redhat.com> * rc.d/init.d/network: fix typo diff --git a/initscripts.spec b/initscripts.spec index b30e43b6..62811437 100644 --- a/initscripts.spec +++ b/initscripts.spec @@ -1,6 +1,6 @@ Summary: The inittab file and the /etc/rc.d scripts. Name: initscripts -%define version 4.55 +%define version 4.56 Version: %{version} Copyright: GPL Group: System Environment/Base @@ -194,6 +194,9 @@ rm -rf $RPM_BUILD_ROOT %ghost %attr(0664,root,utmp) /var/run/utmp %changelog +* Mon Oct 18 1999 Bill Nottingham <notting@redhat.com> +- do something useful with linuxconf 'any' static routes. + * Tue Oct 12 1999 Matt Wilson <msw@redhat.com> - added patch from Owen to source i18n configuration before starting prefdm diff --git a/src/process.c b/src/process.c index 3dca28e3..307fd98d 100644 --- a/src/process.c +++ b/src/process.c @@ -67,7 +67,7 @@ int forkCommand(char **args, int *outfd, int *errfd, int *cmdfd, int quiet) { fdcmd = fdpipe[1]; *cmdfd = fdpipe[0]; } else { - fdcmd = open("/dev/null",O_WRONLY"); + fdcmd = open("/dev/null",O_WRONLY); } ourpid = getpid(); if ((pid = fork())==-1) { @@ -79,7 +79,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 +132,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; |