Return to BSD News archive
Xref: sserve comp.sys.next.programmer:10579 comp.dcom.modems:34930 comp.unix.bsd:12278 comp.unix.programmer:10521 Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!gatech!ncar!noao!CS.Arizona.EDU!not-for-mail From: kline@CS.Arizona.EDU (Nick Kline) Newsgroups: comp.sys.next.programmer,comp.dcom.modems,comp.unix.bsd,comp.unix.programmer Subject: resolved: how to exit pgm w/o hanging up phone Followup-To: comp.sys.next.programmer Date: 15 Jul 1993 19:10:47 -0700 Organization: University of Arizona CS Department, Tucson AZ Lines: 46 Message-ID: <2252n7$c9p@cheltenham.cs.arizona.edu> References: <21r411$2dj@cheltenham.cs.arizona.edu> <2252fm$c65@cheltenham.cs.arizona.edu> NNTP-Posting-Host: cheltenham.cs.arizona.edu The question was answered. Here was the orginal posting: <21r411$2dj@cheltenham.cs.arizona.edu> kline@CS.Arizona.EDU writes: > > >I am wondering how my program can keep from hanging up the modem after >it exits. > >I have a NeXT 040 cube running os release 3.0. I have a zyxel modem. >For those in other newsgroups, this runs a bsd 4.3 / mach 2.x combo. >If there is a way to do this in bsd, then it should work here. I received several basic solutions: 1. change the modem config so that it ignores dtr (which is cleared when you exit a pgm). But: I wanted a modem independent way. 2. many ioctl's take a 3rd parameter which is 0 or 1 which turns that off or on. #define TIOCHPCL _IO('t',2) /* hang up on last close */ But: TIOCHPCL ignores that 3rd parameter (and it's not documented that way). 3. The correct solution was to open /dev/tty* such as ttyfa instead of cufa. This works. it doesn't hangup the phone after exiting. - thanks for the info. He also added: |>>However, you will have difficulty sharing with any concurrent subprocesses. |>>--- Bruce Gingery bruce@TotSysSoft.com Total System Software - |>>---- -- -- the makers of DFax I don't believe I've ever read about opening /dev/ttyf* anywhere. It works correctly. -nick ps isn't the net great? probably if I had called up atari and had my credit