lkml.org 
[lkml]   [1999]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: bug(?) in block_til_ready serial.c - open() blocking, 2.0 & 2.2
On Fri, 19 Mar 1999, Alan Cox wrote:

>
> > My program is partially based on serial-programmming-howto. May still contain
> > some bugs. But it should not result in such a state of /dev/ttyS0. In my
> > opinion serial.c uses too much undocumented features of Linux scheduler.
>
> Try O_NDELAY as a flag
>

OK, the bug was in my program - I have put CLOCAL flag into c_oflag, not
c_cflag, thus effectively clearing it. But then I consider not using
"O_NDELAY" by "stty" program a bug.

After "stty -clocal < /dev/ttyS0" you can not use stty any more.

Best regards,
--
Tomek


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:51    [W:0.039 / U:0.132 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site