Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1+some 2/3/84; site dual.UUCP
Path: utzoo!linus!decvax!harpo!ihnp4!dual!fair
From: fair@dual.UUCP (Erik E. Fair)
Newsgroups: net.unix
Subject: Re: How to generate a break/disconnect?
Message-ID: <289@dual.UUCP>
Date: Mon, 20-Feb-84 05:38:48 EST
Article-I.D.: dual.289
Posted: Mon Feb 20 05:38:48 1984
Date-Received: Tue, 21-Feb-84 03:47:53 EST
References: <613@druky.UUCP>
Organization: Dual Systems, Berkeley, CA
Lines: 15

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@BERKELEY.ARPA
	{ucbvax,ihnp4,cbosgd,amd70,zehntel,fortune,unisoft,onyx,its}!dual!fair
	Dual Systems Corporation, Berkeley, California