How to generate a break/disconnect?

Erik E. Fair fair at dual.UUCP
Mon Feb 20 20:38:48 AEST 1984


The quick answer is that there is an ioctl(2) call in System V for
generating breaks. The catch is that the code is expected to be
in your serial driver (i.e. the top level tty driver does not fake it).
So if your serial driver doesn't know how to do a break, you will have
to fake it a la UUCP: change the baud rate down to 50 baud, and send
some number of nulls. (This was V7 UUCP. System III & later UUCP's
use the ioctl).

The ioctl is TCSBRK.

	Erik E. Fair

	dual!fair at BERKELEY.ARPA
	{ucbvax,ihnp4,cbosgd,amd70,zehntel,fortune,unisoft,onyx,its}!dual!fair
	Dual Systems Corporation, Berkeley, California



More information about the Comp.unix mailing list