Re: Avoiding sysctl at program startup using ELF aux vector (was: concurrent sysctl implementation)

2010-08-14 Thread Kostik Belousov
On Sat, Aug 07, 2010 at 09:37:22PM +0200, Marius Strobl wrote: On Sat, Aug 07, 2010 at 09:09:04PM +0300, Kostik Belousov wrote: On Sat, Aug 07, 2010 at 03:59:39PM +0200, Marius Strobl wrote: On Fri, Aug 06, 2010 at 02:11:31PM +0300, Kostik Belousov wrote: On Fri, Aug 06, 2010 at

Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
Hi, I'm working on a small piece of code that reads a data stream from the serial port, putting it into a buffer for processing later - for those interested, it is receiving DMX512 lighting control data - but I'm having trouble with the detection of a break condition on the serial line. I'd

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Ed Schouten
* Paul Thornton p...@prt.org wrote: I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. Somewhat unrelated question: have you ever tried running the this code on 7.x? If so, did it work? -- Ed Schouten e...@80386.nl WWW: http://80386.nl/ pgp1PRCv6Lq6n.pgp Description: PGP

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Daniel O'Connor
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

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
Ed Schouten wrote: * Paul Thornton p...@prt.org wrote: I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. Somewhat unrelated question: have you ever tried running the this code on 7.x? If so, did it work? I've just tried this on 7.2-RELEASE (that was the only 7.x CD I could

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Paul Thornton
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

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Garrett Cooper
On Sat, Aug 14, 2010 at 5:03 PM, Paul Thornton p...@prt.org wrote: Ed Schouten wrote: * Paul Thornton p...@prt.org wrote: I'm using 8.0-RELEASE with uftdi and ucom driving the serial port. Somewhat unrelated question: have you ever tried running the this code on 7.x? If so, did it work?

Re: Problem detecting and reacting to serial break

2010-08-14 Thread Daniel O'Connor
On 15/08/2010, at 9:38, Paul Thornton wrote: 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