lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ