Xref: utzoo comp.unix.programmer:686 comp.lang.c:34746 Path: utzoo!attcan!uunet!van-bc!ubc-cs!news-server.csri.toronto.edu!rutgers!cmcl2!panix!jsb From: jsb@panix.uucp (J. S. B'ach) Newsgroups: comp.unix.programmer,comp.lang.c Subject: Re: Determining Carrier on Modem Message-ID: <1990Dec13.130721.4683@panix.uucp> Date: 13 Dec 90 13:07:21 GMT References: <1990Dec12.203600.3227@rigel.econ.uga.edu> Organization: Panix, NYC Lines: 17 In article <1990Dec12.203600.3227@rigel.econ.uga.edu> jeffrey@rigel.econ.uga.edu (Jeffrey A. Thompson) writes: )I would like to know how to determine if a modem has or doesn't have a carrier. )The program has an open file descriptor (O_RDWR) associated with the modem )device. The program waits on messages to send to the modem and the other modem )could have timed out and dropped the carrier. I'd like to know how a program could determine if DTR is asserted. For some (probably electrical) reason, a getty will get tired of asserting DTR and no one is able to log in from that port until it is killed and a new getty is spawned asserting DTR (for a while )-: I'd like to be able to run a cron task to kill any gettys which have dropped DTR. -- jim (rutgers!cmcl2!panix!jsb, uunet!jyacc!jsb, or uunet!echo!jimb) "Only our concept of time makes it possible for us to speak of the Day of Judgement by that name; in reality it is a summary court in perpetual session" -Franz Kafka