This is the mail archive of the
mailing list for the Cygwin project.
Re: win95 pipe problems -- report + testcase + patch
Op Wed, 8 Sep 2004 12:06:57 +0200 schreef Corinna Vinschen
: On Sep 8 01:55, Bas van Gompel wrote:
: > This fix trips on a bug in (my) windows 95 (OSR2):
: > It's CreateNamedPipe returns 0 instead of -1 (INVALID_HANDLE_VALUE),
: > causing all operations on pipes to fail.
: > [...]
: > A patch to work around this in cygwin could be: (WFM)
: > I hope this patch is small enough to qualify as `trivial', as I
: It is. I'm just wondering if it is really necessary to assume, that
: CreateNamedPipe will ever return NULL as a vaild handle. I'd assume
The fact that INVALID_HANDLE_VALUE != NULL, made me think NULL might
be a valid handle value elsewhere. I was just trying to be thorough.
I don't think the difference will severely hurt performance or size...
: that the following patch is sufficient:
Possibly. However MS might also make NULL be an alias to NUL in the
future, or just treat NULL like any other handle.
: > haven't received any reply to my legal query (yet). (Did the reply
: > get blocked from the list?)
: No, there was no reply so far, unfortunately. I'm sorry. I'll try to
: nudge our legal department again.
I'll be waiting. (This will give me more time to test readdir_r,
once I decide how to keep accesses separate.)
) | | ---/ ---/ Yes, this | This message consists of true | I do not
-- | | / / really is | and false bits entirely. | mail for
) | | / / a 72 by 4 +-------------------------------+ any1 but
-- \--| /--- /--- .sigfile. | |perl -pe "s.u(z)\1.as." | me. 4^re
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html