EIO error on background tty reads

Christopher Faylor cgf@redhat.com
Mon Jun 30 22:54:00 GMT 2003

On Mon, Jun 30, 2003 at 05:39:37PM -0400, Rafael Kitover wrote:
>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.

No apologies necessary!  I've reworked this section of code many many times
trying to get the arcane UNIX practices correct.  I'm willing to believe
that I've gotten something wrong.  I just need you to tell me what that is,
I guess.  :-)


More information about the Cygwin-patches mailing list