Re: Bug in stty or /dev/ttySx handling code

2005-08-11 Thread Troy Curtiss
Hi Peter, That was my patch applied back in 02/01/2003 and upon re-examining it, I believe this is an error. The intended behavior was as follows: 1) When a baud rate of B0 is passed to tcsetattr(), it should not change the actual baud rate, but instead drop DTR. 2) In tcgetattr(), the prese

open() not handling previously opened serial port gracefully?

2002-10-29 Thread Troy Curtiss
Hi, I recently ran into a problem where my cygwin-based program was trying to open a serial port that was already opened by another windows app. Instead of the open() call failing & returning -1, the cygwin program dumped stack (tracing w/ gdb indicated that the failure was within the open()