Re: Non-Cygwin programs touching a pipe's read side makes the write side unselectable

2024-03-10 Thread Takashi Yano via Cygwin
On Sun, 10 Mar 2024 17:38:53 +0900 Takashi Yano wrote: > On Sun, 10 Mar 2024 05:49:43 + > wh wrote: > > Here's how to reproduce this behavior. > > > > In test3.pl: > > > > #!/usr/bin/perl > > my $wfds = ''; > > vec($wfds, fileno(STDOUT), 1) = 1; > > sleep 1; > > print STDERR "selecting\n"; >

Re: Non-Cygwin programs touching a pipe's read side makes the write side unselectable

2024-03-10 Thread Takashi Yano via Cygwin
On Sun, 10 Mar 2024 05:49:43 + wh wrote: > Here's how to reproduce this behavior. > > In test3.pl: > > #!/usr/bin/perl > my $wfds = ''; > vec($wfds, fileno(STDOUT), 1) = 1; > sleep 1; > print STDERR "selecting\n"; > select undef, $wfds, undef, undef; > print STDERR "ready\n"; > print "abc\n";

Non-Cygwin programs touching a pipe's read side makes the write side unselectable

2024-03-09 Thread wh via Cygwin
Here's how to reproduce this behavior. In test3.pl: #!/usr/bin/perl my $wfds = ''; vec($wfds, fileno(STDOUT), 1) = 1; sleep 1; print STDERR "selecting\n"; select undef, $wfds, undef, undef; print STDERR "ready\n"; print "abc\n"; Then run: # curl is as shipped with Windows, /cygdrive/c/Windows/s