Subject: Re: Waiting for a ring...
To: David Forbes <firstname.lastname@example.org>
From: Simon J. Gerraty <email@example.com>
Date: 09/01/2001 00:07:42
Not quite what you asked for, but mgetty sets the modem up to say "RING"
when the phone rings - it can then do a blocking read on the device.
>Is there a neat way for a process to sleep until modem signal on the RI
>line is detected? TIOCMGET will tell me whether the line is active now,
>but I would like the system to tell me when it is active, rather than
>having to repeatedly poll.