termios VTIME and VMIN prevent SIGALRM from interrupting read

J. L. Sloan jsloan@diag.com
Tue Oct 23 22:28:00 GMT 2012

If I use termios(3) to set VTIME and VMIN to values greater than zero for
a serial port, I can no longer interrupt a read(2) against the descriptor
with SIGALRM. Replacing read(2) with nanosleep(2) yields EINTR as
expected. Not setting VTIME and VMIN, read(2) yields EINTR as desired.
Test program and cygcheck output attached. Could be this is intended
behavior. It seems more likely that this is a bug in the driver for my
USB-to-serial adapter. Cygwin 1.7.17 snapshot 2012-10-16.

J. L. Sloan          Digital Aggregates Corp.
+1 303 940 9064 (O)  3440 Youngfield St. #209
+1 303 489 5178 (M)  Wheat Ridge CO 80033 USA
jsloan@diag.com      http://www.diag.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: unittest_cygwin_sigalrm.c
Type: application/octet-stream
Size: 2096 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20121023/4853a91c/attachment.obj>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out.txt
URL: <http://cygwin.com/pipermail/cygwin/attachments/20121023/4853a91c/attachment.txt>
-------------- next part --------------
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

More information about the Cygwin mailing list