This is the mail archive of the cygwin-developers@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: a couple proposed patches


Christopher Faylor wrote:

How could this possibly work?  You get a signal, keep reading, and
then another process which also has the pipe open wants to grab data from
the pipe.  But, it can't get it because the original process has sucked
it all in.  So you store the data in shared memory?  And have to worry
about who gets what data when?  Ugh.  That wouldn't work with native
windows apps anyway.

That was one of the issues about the implementation. Essentially the scenario involves two processes reading the same pipe, with one being interrupted on a read() so the other one can read(). Does anything do this? And does it matter whether the first process actually read anything from the pipe?

Native apps are not involved in my patch.  All that is affected is Cygwin
process reads.
--
Joe Buehler


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