[comp.unix.questions] How do I hang up modem port SYSV R3?

mercer@ncrcce.StPaul.NCR.COM (Dan Mercer) (12/01/89)

I have a program that dials out a Unix port to a Unix port,  across
which session traffic runs.  In many ways,  it mimics cu.  Unfortunately,
unlike cu,  it won't hang up the line when it exits.

I change the struct termio parameters so that HUPCL is set,  CLOCAL is
not,  and CBAUD = 0.  I close the file.  Still the processes on the
terminal line stay up,  even though DTR should have dropped.

If I use cu for the same purpose,  and enter ~.,  the line drops
and the terminal processes all get SIGHUP.

What is cu doing to drop the line?

HELP!   This is driving me crazy!!!


-- 

Dan Mercer
Reply-To: mercer@ncrcce.StPaul.NCR.COM (Dan Mercer)