Hi there !
First of all, sorry for my english, it is improving slowly.
After having applied the 0.16-5 patch I observed that in some circumstances
dctrl was unable to monitor diald process, the script was suspended in I/O
with the FIFO. After, I was able to reproduce the problem by selecting
the 'Restart monitoring' option of dctrl menubar.
I did some hacking with shell scripts and I found the problem was in diald's
FIFO blocking mode. I wrote a minor fix which is OK on my Linux box. The
Linux kernel I am running is 2.0.27.
************************************************************************
*** I DON'T CLAIM THIS IS THE GOOD SOLUTION ***
*** USE IT AT YOUR OWN RISK ;-) ***
************************************************************************
Here's is the patch:
diff -u -N diald.c-0.16-5 diald.c
--- diald.c-0.16-5 Sat Apr 18 22:36:29 1998
+++ diald.c Sun May 24 14:05:59 1998
@@ -468,10 +468,11 @@
if (stat(fifoname,&sbuf) < 0 || !sbuf.st_mode&S_IFIFO)
{
syslog(LOG_INFO,"FIFO: %s not a pipe.",
buf+k);
- } else if ((fd = open(buf+k,O_WRONLY|O_NDELAY))<0) {
+ } else if ((fd = open(buf+k,O_WRONLY))<0) {
syslog(LOG_INFO,"FIFO: could not open pipe %s: %m",
buf+k);
} else {
+ fcntl(fd, O_NDELAY);
new = (MONITORS *)malloc(sizeof(MONITORS));
new->name = strdup(buf+k);
new->next = monitors;
I
--
//////
| . . | Cyril Guibourg http://worldserver.oleane.com/gc051/
| ^ | plan: E2BIG ;-) mailto:pivert*NO-SPAM*@mail.dotcom.fr
-oOo-----oOo--------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]