[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Interface status detection




> True. It's a bug. KDE fires up licq automatically so I have never
> noticed this bug. Now how do we fix it (without checking for a process
> named 'licq' or anything like that. How do you make sure a fifo has
> someone on the other end?)

Mandrake and Redhat network scripts write a file /var/run/ppp-.pid when
a ppp connection is established. The file exists all the time, so you
cen select(2) on it. In Mandrake (I don't know if on RH as well), there
is a /var/run/netreport directory where you can write the pid of your
program, and it will be sent a SIGIO whenever a network event (device
up/down) occurs.
I'm sure Debian, and all other have similiar mechanisms, if not actually
the same ones.


-- 
Matan Ziv-Av.                         matan@svgalib.org


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il