Opened 10 years ago
Closed 10 years ago
#120 closed defect (fixed)
echo: ENOSPC on windows with pipe.
Reported by: | bird | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | kBuild | Version: | 0.1.5 |
Keywords: | ENOSPC | Cc: |
Description
We're seeing occational ENOSPC errors on the tinderboxes. The error message is generally garbled, but I think it should be:
kmk_builtin_echo: write: No space left on device
https://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00169.html hints at this being due to special pipe weirdness on windows.
May require adding write glue code to deal correctly with this in a general fashion.
Note:
See TracTickets
for help on using tickets.
_write_nolock() in crt/src/write.c returns ENOSPC if no bytes were written and no error reported by windows. (line 497 in the Visual Studio v10 sources). It's really just a way of saying: The pipe buffer is full and we're in non-blocking mode, so try again.