3.3.0: Possible regression in cygwin DLL (Win10); fixed in snapshot
Sun Nov 7 03:46:06 GMT 2021
On Sat, 6 Nov 2021 12:38:43 -0400
Ken Brown wrote:
> On 11/6/2021 7:42 AM, Corinna Vinschen wrote:
> > On Nov 6 15:10, Takashi Yano wrote:
> >> Ken Brown wrote:
> >>> On 11/5/2021 3:41 PM, Takashi Yano via Cygwin wrote:
> >>>> What about setting pipe mode to byte by default?
> >>> I have a vague recollection that this caused some other problem, but I'll have
> >>> to review the email discussions from a few months ago. I'm traveling at the
> >>> moment and won't get to this for a few days.
> I found it:
I tested the current pipe behaviour using the following test code.
With both message and byte pipe, the result are the same:
which complies with POSIX requirement.
I have tested under Windows Vista, 7 and 10 and got same results.
#define PIPE_SIZE 65536
/* Set non-blocking */
flags = fcntl(fd, F_GETFL);
flags |= O_NONBLOCK;
fcntl(fd, F_SETFL, flags);
/* Fill pipe */
printf("w:%d\n", write(fd, buf, PIPE_SIZE));
/* Free PIPE_BUF/2 bytes */
printf("r:%d\n", read(fd, buf, PIPE_BUF/2));
/* Write PIPE_BUF bytes */
printf("w:%d\n", write(fd, buf, PIPE_BUF));
Takashi Yano <email@example.com>
More information about the Cygwin-developers