Linux C Serial Guru Needed

Linux C Serial Guru Needed

Post by Adam W. Da » Sat, 29 Apr 1995 04:00:00



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. :-)

--
/--------------------------------------+-------------------------------------\

| Rebel Against the MicroSloth Empire  |   'Please don't do that!'" -- Phish |
\--------------------------------------+-------------------------------------/

P.S.  My original release, which depends on an error when setting the
terminal settings on the line to detect whether the modem is in use or
not is available on sunisite.unc.edu:

/pub/Linux/system/Network/serial (INDEX)
ringd-0.8.tgz            hangs on a modem, waiting for a ring sequence

 
 
 

1. Linux guru needed urgently for lucrative contract work.

Linux guru needed urgently for lucrative contract work.

We are a London-based company providing Linux based solutions.  We need a
Linux expert with the experience in the following: -

1. Using Linux as a fileserver for Windows
2. Linux as an Internet e-mail gateway and local Mail Server
3. Apache webserver

You must be prepared to carry out site visits withing greater London at
short notice.

RATE IS     *********   40 per hour   **************

References are essential

Contact Michael Howes

2. (Fwd) ConfigXF86 problems

3. HELP!!! /dev problem, Linux guru needed

4. root can't use commands

5. LINUX GURUS NEEDED!!!

6. Sys Programming Books

7. F/T or P/T linux Guru needed to hire !

8. gcc error - unknown flag -lang-c

9. Linux <--> Win95 networking: urgent guru-level help needed

10. I need a Linux Guru for a printer problem....

11. **** Linux Guru Needed ****

12. Linux Gurus needed

13. Need guru to recommend book for Linux/FreeBSD admin