On Sat, 21 Nov 1998, Christoph Graf wrote:

 
> *** dctrl       Sat Nov 21 15:59:04 1998
> --- dctrl.old   Sat Nov 21 17:38:35 1998
> ***************
> *** 222,228 ****
> 
>       set monfifo /tmp/dctrl.[pid]
>       catch {exec mkfifo -m 0600 $monfifo}
> -     exec sleep 2
>       fifoCmd "monitor $monfifo"
>       set monfd [open $monfifo r]
>       fileevent $monfd readable {stateChange}
> --- 222,227 ----           
> 


You also need to open the fifo in read mode before you tell diald to open
the fifo in write mode.  In order to do this you swap the lines starting
with 'fifoCmd' and 'set monfd'.  Furthermore, set the open mode to 'r+'
aka O_RDWR which will prevent the open from suspending waiting for the
writer.

      set monfd [open $monfifo r+]
      fifoCmd "monitor $monfifo"

Villy


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

Reply via email to