[PATCH v8] Cygwin: pipe: Switch pipe mode to blocking mode by default

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Oct 28 11:57:05 GMT 2024


On Oct 28 20:25, Takashi Yano wrote:
> Is the test case I used different from yours? Without the 2nd arg,
> $ ./a.exe 40000
> pipe capacity: 65536
> write: writable 1, 40000 25536
> write: writable 1, SIGALRM 24576 960
> write: writable 0, SIGALRM -1 / Interrupted system call

This is the same testcase I pasted last week:

  $ ./x 40000
  pipe capacity: 65536
  write: writable 1, 40000 25536
  write: writable 1, SIGALRM 24576 960
  write: writable 0, SIGALRM 512 448
  write: writable 0, SIGALRM 256 192
  write: writable 0, SIGALRM 128 64
  write: writable 0, SIGALRM 64 0
  write: writable 0, SIGALRM -1 / Interrupted system call

So why does it not get into the last else case after calling
pipe_data_available()?  Do you get a different return value
from pipe_data_available()? If so, what and why?


Corinna


More information about the Cygwin-patches mailing list