diff options
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc index 422c8e8..bb141b0 100644 --- a/winsup/cygwin/select.cc +++ b/winsup/cygwin/select.cc @@ -670,7 +670,9 @@ pipe_data_available (int fd, fhandler_base *fh, HANDLE h, int mode) fpli.WriteQuotaAvailable); return fpli.WriteQuotaAvailable; } - /* TODO: Buffer really full or non-Cygwin reader? */ + return PIPE_BUF; /* Workaround for native ninja. Native ninja creates + pipe with size == 0, and starts cygwin process + with that pipe. */ } else if (fpli.ReadDataAvailable) { |