From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 14 23:43:17 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 992BC1065697 for ; Sat, 14 Aug 2010 23:43:17 +0000 (UTC) (envelope-from doconnor@gsoft.com.au) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.freebsd.org (Postfix) with ESMTP id EDBA68FC08 for ; Sat, 14 Aug 2010 23:43:16 +0000 (UTC) Received: from ur.dons.net.au (ppp121-45-156-6.lns6.adl6.internode.on.net [121.45.156.6]) (authenticated bits=0) by cain.gsoft.com.au (8.14.4/8.14.3) with ESMTP id o7ENh7ai093872 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 15 Aug 2010 09:13:13 +0930 (CST) (envelope-from doconnor@gsoft.com.au) Mime-Version: 1.0 (Apple Message framework v1081) Content-Type: multipart/signed; boundary=Apple-Mail-33-726993049; protocol="application/pkcs7-signature"; micalg=sha1 From: "Daniel O'Connor" In-Reply-To: <4C66D2CF.9040408@prt.org> Date: Sun, 15 Aug 2010 09:13:07 +0930 Message-Id: References: <4C66D2CF.9040408@prt.org> To: Paul Thornton X-Mailer: Apple Mail (2.1081) X-Spam-Score: 0.163 () BAYES_00,RDNS_DYNAMIC X-Scanned-By: MIMEDefang 2.67 on 203.31.81.10 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-hackers@freebsd.org Subject: Re: Problem detecting and reacting to serial break X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Aug 2010 23:43:17 -0000 --Apple-Mail-33-726993049 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 15/08/2010, at 3:00, Paul Thornton wrote: > So according to the documentation, the effect of the break should be = to > flush the input and output buffers, and send a SIGINT to my process. = The > buffer doesn't seem to get flushed, and I don't get sent the SIGINT. It does sounds like it's ignoring your request :( However you won't get a SIGINT unless the serial port is the controlling = terminal of your process (which it won't be if you just open()'d it) -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --Apple-Mail-33-726993049--