This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: line BRK detection on ttyS0
- From: Mark Hounschell <dmarkh at cfl dot rr dot com>
- To: glibc <libc-help at sourceware dot org>
- Cc: Mark Hounschell <markh at compro dot net>
- Date: Wed, 06 Oct 2010 05:42:36 -0400
- Subject: Re: line BRK detection on ttyS0
- References: <4CAC3672.1070901@cfl.rr.com>
- Reply-to: dmarkh at cfl dot rr dot com
On 10/06/2010 04:42 AM, Mark Hounschell wrote:
> I ask the following on LKML and Mr. Alan Cox said that as far as the
> kernel was concerned it should work
> but that I needed to ask here.
>
> Does the kernel support sending a SIGINT from a line BRK on ttyS0 to a thread of a process
> where the process has a controlling terminal that is NOT ttyS0 and the thread is using ttyS0
> in a cfmakeraw mode? I see doc that implies that ttyS0 must be the controlling terminal but
> can my thread have a controlling terminal while my main process has it's own? My thread
> cannot use the \377 \0 \0 char sequence because it is receiving and transmitting 8-bit binary
> data. Is there a way for the kernel to inform my thread, not my main process, of a line BRK?
> Or a way for my thread to ask the kernel if a line BRK occurred on ttyS0?
>
>
> Thanks and regards
> Mark
>
>
>
>