From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 15 00:08:22 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 A2A2F1065672 for ; Sun, 15 Aug 2010 00:08:22 +0000 (UTC) (envelope-from prt@prt.org) Received: from smtp5.uk.umis.net (smtp5.uk.umis.net [217.65.166.40]) by mx1.freebsd.org (Postfix) with ESMTP id 6C1A08FC1A for ; Sun, 15 Aug 2010 00:08:22 +0000 (UTC) Received: from kate.prtsystems.ltd.uk ([217.65.165.35]) by smtp5.uk.umis.net with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.63 (FreeBSD)) (envelope-from ) id 1OkQlx-000Nm2-1w; Sun, 15 Aug 2010 00:08:21 +0000 Message-ID: <4C672FF4.4080208@prt.org> Date: Sun, 15 Aug 2010 01:08:20 +0100 From: Paul Thornton User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Daniel O'Connor References: <4C66D2CF.9040408@prt.org> In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Sun, 15 Aug 2010 00:08:22 -0000 Daniel O'Connor wrote: > 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) I realised that about 10 minutes after posting the original mail when re-reading the documentation on termios, thanks for the confirmation though. Part of the problem I'm having is that whenever you try and search for information/docs about this sort of thing, you're transported back in a time warp to the 1980s where people used serial terminals as the norm for access and everything seems to be written from that standpoint - not from a "I'd like to use the serial port for binary data that has nothing to do with interactive login please" perspective... Paul.