Messages in this thread Patch in this message | | | Date | Sun, 31 Mar 1996 23:06:03 -0500 | From | "Gregory L. Galloway" <> | Subject | Linux-1.3.81, SysVinit-2.59, Red Hat 3.0.3 fixed! |
| |
I've created a new rpm of SysVinit-2.59 with the patch shown at the end of this message. This patch fixes the 'error reading initrequest' messages which occur when you run the new 1.3.81 kernel with the new select()/named pipe behaviour. Contrary to what was posted earlier, this error does occur with both SysVinit 2.58 and 2.59.
The new rpm will soon be at the following sites:
ftp://mu-shu.gtri.gatech.edu/pub/SysVinit-2.59-1.i386.rpm ftp://mu-shu.gtri.gatech.edu/pub/SysVinit-2.59-1.src.rpm
ftp://ftp.redhat.com/pub/Incoming/SysVinit-2.59-1.i386.rpm ftp://ftp.redhat.com/pub/Incoming/SysVinit-2.59-1.src.rpm
Note: This patch is a hack. Someone who knows how this section of the code works should probably create a better fix.
Greg -- Gregory L. Galloway Research Scientist I
http://eoeml-www.gtri.gatech.edu/~gregg/
--- sysvinit-2.59/init.c.orig2 Sun Mar 31 22:40:17 1996 +++ sysvinit-2.59/init.c Sun Mar 31 22:53:17 1996 @@ -1411,7 +1411,7 @@ /* Try to open /dev/initctl */ if (pipe_fd < 0) { - if ((pipe_fd = open(INIT_FIFO, O_RDONLY|O_NONBLOCK)) >= 0) { + if ((pipe_fd = open(INIT_FIFO, O_RDWR|O_NONBLOCK)) >= 0) { /* Don't use fd's 0, 1 or 2. */ (void) dup2(pipe_fd, PIPE_FD); close(pipe_fd);
| |