For a while now, I've put my little daemon, ringd, on the back burner.
Now that I take it out again I'm having some serious problems trying to
figure out how I can make this program sit quietly in the background,
and only when dip/minicom/kermit/etc are not running have it wait for a
specific RING sequence.
I just experimented with using ttyS* instead of the traditional cua*.
For some reason my program hangs when trying to open() the device.
if ((fd_modem = open(MODEM_DEV, O_RDONLY | O_NOCTTY)) < 0)
*yawn* My next step will be to go out and grab getty source code and see
if that might help.
If *anyone* has any ideas/comments/whatever *please* e-mail me as well as
replying here. I'm not too experienced doing Un*x C and could use all
the help I can get with this.
Thanks. :-)
-- P.S. My original release, which depends on an error when setting the /pub/Linux/system/Network/serial (INDEX)
/--------------------------------------+-----------------------------------
| Rebel Against the MicroSloth Empire | 'Please don't do that!'" -- Phish |
\--------------------------------------+-----------------------------------
terminal settings on the line to detect whether the modem is in use or
not is available on sunisite.unc.edu:
ringd-0.8.tgz hangs on a modem, waiting for a ring sequence