lkml.org 
[lkml]   [2000]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: /dev/ttyX not-blocking
   Date: 	Sat, 29 Jul 2000 23:07:51 -0400 (EDT)
From: Edward Muller <edwardam@home.com>

Nevermind 'stty -F /dev/ttyS1 -clocal' fixed the problem. Although
I'm not sure why the device was setup with clocal, which disables
modem control signals...

TTY's are initialized by default (at boot time) with the CLOCAL flag
set. This was originally so that commands like "stty -clocal <
/dev/ttyS1" wouldn't block. (The -F construct is a relatively new one
to stty. It took almost two years for the stty maintainer to integrate
the change and get a new version out. :-)

Note, in the Posix World, applications are supposed to set them to
whatever values they require, and not make assumptions about about the
initial state of the termios flags when a process starts.

- Ted

-
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:57    [W:0.035 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site