lkml.org 
[lkml]   [1996]   [Mar]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectLinux-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);

\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.043 / U:0.992 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site