Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!uwm.edu!cs.utexas.edu!geraldo.cc.utexas.edu!vax From: vax@no.permanent.address (VaX#n8) Newsgroups: comp.os.386bsd.questions Subject: [NetBSD-curr] serial write hangs Date: 24 Nov 1994 09:34:10 GMT Organization: The University of Texas at Austin, Austin, Texas Lines: 27 Message-ID: <3b1mmi$c5b@geraldo.cc.utexas.edu> NNTP-Posting-Host: slip-2-92.ots.utexas.edu X-Newsreader: TIN [version 1.2 PL2] I'm having a wierd problem; a "slipup" program that I wrote/modified heavily opens the serial port and dials, starts slip, etc. Now, if the slip line gets disconnected (modem hangs up, line fails, etc), it is supposed to hang up the modem and redial. However, this is what happens: The line hangs up (only lights on are MR, AA, HS, CS). The program executes a sleep process to wait on the line (to hold it open). The program uses stty to set clocal mode, and TR goes on. The program writes "+++" then "ATH0" and C/R. (Note: don't think it ever gets an OK here, but I'm not sure) * The program starts over, setting clocal mode, a sleep process, etc., again. The program resets the modem with AT Z The program sends the dial string "AT DT ..." The program waits forever, never getting an "OK". Everything from "*" on is what it runs the first time you run the program. So I doubt there's something wrong from there on. Funny thing is, if I kill the program and re-run it, it works. What am I doing wrong? Please note the mail address below! All help is GREATLY appreciated! -- MAIL TO THIS ADDRESS: vax@ccwf.cc.utexas.edu Ask me about BSD Unix for your PC for FREE! (NetBSD) - Yes, it runs fast! Victimless crimes are a figment of the state's collective imagination.