On Thu, 5 Nov 1998, Tim Hillman wrote:

> Well, Brian mentioned an rpm for a patch to diald-0.16.  Since I am not
> running redhat, this doesn't do much good. I went to the diald home page
> and downloaded the latest patch and installed it.  Did not seem to do
> anything.  If there is a patch to the patch someplace, maybe that is what
> what I need.
> 

Here is the core of the patch.  The main thing is to open the monfifo
before running fifoCmd, and also open mode r+ aka O_RDWR wich will prevent
the open to be suspended until some writer opens the other end of the
pipe.

This patch has been in this mailing list before, and that is where I
picked it up.

Villy

--- /data/diald-0.16/bin/dctrl  Tue Jan 28 00:21:42 1997
+++ /usr/bin/dctrl      Tue Oct  6 13:32:15 1998
@@ -222,8 +222,8 @@
 
     set monfifo /tmp/dctrl.[pid]
     catch {exec mkfifo -m 0600 $monfifo}
+    set monfd [open $monfifo r+]
     fifoCmd "monitor $monfifo"
-    set monfd [open $monfifo r]
     fileevent $monfd readable {stateChange}
 }
 


-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]

Reply via email to