How do I hang up modem port SYSV R3?

Dan Mercer mercer at ncrcce.StPaul.NCR.COM
Fri Dec 1 10:59:39 AEST 1989


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 at ncrcce.StPaul.NCR.COM (Dan Mercer)



More information about the Comp.unix.questions mailing list