[<prev] [next>] [day] [month] [year] [list]
Message-ID: <40326.192.35.17.30.1213263410.squirrel@admin.kz-easy.com>
Date: Thu, 12 Jun 2008 15:36:50 +0600 (ALMT)
From: ibr@...easy.com
To: linux-kernel@...r.kernel.org
Subject: EOF from the N_TTY ldisc intended?
Hello,
I have a program reading multiple bytes one by one after a select from a
serial port opened in non-blocking mode. If I send one byte to that port,
the first read delivers it, and the second one returns zero. The program
treats this as the end of file and exits. Is this behavior of the default
line discipline intended? I would expect it to return -EAGAIN if there is
no more data in the receive queue.
I'm attaching a sample program.
Please CC to me, I'm not subscribed.
Thanks in advance,
--
Baurzhan Ismagulov
http://www.kz-easy.com/
View attachment "b.c" of type "text/x-csrc" (1138 bytes)
Powered by blists - more mailing lists