On 09-Sep-98 Peter J. MASON wrote:
>> I tried some options for dctrl, with no result.
>> Anyone familiar with this problem ?
>> (I use diald-0.16.5-201, diald-config-0.16.5-201 and RH5.1)
> 
> Yes, this is happening to me too. It seems to be some sort of race 
> condition, where diald opens the fifo before the TCL implemented 
> dctrl utility has planted a read on it. The return code 
> (error message), consistent with POSIX standards, could be more 
> descriptive though. Unfortunately, my TCL is not yet good enough to 
> poke 'round further, but I do hope someone posts a solution soon.
> 

I am running Caldera OpenLinux 1.2 Lite.
I got the distribution of diald, the patches and compiled.
I had the same problem as you guys are describing.
I reported this to this list, too.
I found my way out of this problem:
dctrl is too fast. It opens the communication pipe before the operating system
has managed to create it. At least that was what happened on my machine. I
inserted some code into dctrl.

(diff on the distributed dctrl < against my dctrl > )

224c224,225
<     catch {exec mkfifo -m 0600 $monfifo}
---
>     catch {exec mkfifo -m 0666 $monfifo}
>     after 2000

The 'after' statement pauses dctrl enough for the os to generate the pipe. Then
dctrl goes on and things work. At least on my macchine.

I have posted this solution to this list, and got the message back: 'It doesn't
work for me', nothing more.

I wonder if any of the developers of dctrl are reading in on this list at all.
This 'error' has been around long enough to be called a bug, and that somebody
actually _do_ create a new patch. I found dctrl the most important debuging
tool for diald. Then I really could follow what packages had my diald wake up.

If you try to put in that 'after' line, and it does work, please give some
feedback to the list, since there are more Red Hate users here than Caldera
users, and I would really know why I fixed it and you not.

By the way does anybody know how to flush the proxy totally? If this is a FAQ
please tell me. When Netscape crashes its stupid java things still send UDP
packages which bring up diald.

Regards,
--
Svenn Are Bjerkem
mailto:[EMAIL PROTECTED]

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

Reply via email to