Subject: Re: serial port control
To: Jaromir Dolecek <dolecek@ics.muni.cz>
From: Jukka Marin <jmarin@pyy.jmp.fi>
List: current-users
Date: 02/10/1998 20:52:48
On Tue, Feb 10, 1998 at 04:40:30PM +0100, Jaromir Dolecek wrote:
> I've tried to write a rather simplistic program, but it blocks on 
> open(2). I've looked at some sources and tried O_NONBLOCK
> option to open. Now the program doesn't block, but I can't write
> anything (Input/Ouput error on write(2)). read(2) returns without error,
> but doesn't read anything too.

Try setting "softcar" flag for that tty line in /etc/ttys (and remember
to kill -HUP 1 to make init aware of the change).  You can also set this
flag using tcsetattr() in your program.

  -jm