This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: EIO error on background tty reads
- From: "Rafael Kitover" <caelum at debian dot org>
- To: <cygwin-patches at cygwin dot com>
- Date: Mon, 30 Jun 2003 17:39:37 -0400
- Subject: Re: EIO error on background tty reads
cgf wrote:
>>What I don't understand is if a background write to a terminal without
>>sending a
>>SIGTTOU which it explicitly ignores is allowed, why not a background read?
>
>Because that's the way it works. Have you tried this with linux? I wrote
>a test case yesterday. linux raises an EIO when a background read is
>attempted, SIGTTIN is ignored, and the process is not a member of the
>terminal's process group. Test case below.
Thank you for the test case! The problem with screen may have had more
to do with the process group than with the read itself, I will do more
testing on cygwin and linux and fix the appropriate sources, in which case
I'm sorry for having wasted your time.
--
Rafael