]> sourceware.org Git - newlib-cygwin.git/commit
Cygwin: FIFO: improve raw_write
authorKen Brown <kbrown@cornell.edu>
Mon, 15 Apr 2019 15:43:57 +0000 (15:43 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 16 Apr 2019 10:54:43 +0000 (12:54 +0200)
commitbb466278713a68d68fd507cb8f2ace6142f0a58c
tree8dc70f7cdd41718539d9ffde76f752c236b2128d
parenta7d08b3ecd721e98757f8f96945660809ec6a3da
Cygwin: FIFO: improve raw_write

Don't set the write end of the pipe to non-blocking mode if the FIFO
is opened in blocking mode.

In fhandler_fifo::raw_write in blocking mode, wait for the write to
complete rather than returning -1 with EAGAIN.

If the amount to write is large, write in smaller chunks (of size
determined by a new data member max_atomic_write), as in
fhandler_base_overlapped.

For convenience, add two new NTSTATUS codes, STATUS_THREAD_SIGNALED
and STATUS_THREAD_CANCELED, to ntdll.h.
winsup/cygwin/fhandler.h
winsup/cygwin/fhandler_fifo.cc
winsup/cygwin/ntdll.h
This page took 0.030229 seconds and 5 git commands to generate.