This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: EIO error on background tty reads


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.  :-)

cgf


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]