* errno.cc (errmap): Add mapping for ERROR_IO_INCOMPLETE.
* fhandler.cc (fhandler_base::fcntl): Fix comment. (fhandler_base::wait_overlapped): Accept an optional len parameter. Use the len parameter when WriteFile fails with ERROR_IO_PENDING. Make debug output less alarming. (fhandler_base::write_overlapped): Pass len to wait_overlapped. * fhandler.h (fhandler_base::wait_overlapped): Add an optional argument denoting the number of characters intended to be written. * fhandler_tty.cc (fhandler_pty_master::close): Don't close archetype handles when cygwin is still initializing since the handles aren't actually opened at that point.
This commit is contained in:
@@ -143,7 +143,7 @@ class fhandler_base
|
||||
void del_my_locks (bool);
|
||||
|
||||
HANDLE read_state;
|
||||
int wait_overlapped (bool, bool, DWORD *) __attribute__ ((regparm (3)));
|
||||
int wait_overlapped (bool, bool, DWORD *, DWORD = 0) __attribute__ ((regparm (3)));
|
||||
bool setup_overlapped (bool doit = true) __attribute__ ((regparm (2)));
|
||||
void destroy_overlapped () __attribute__ ((regparm (1)));
|
||||
|
||||
|
Reference in New Issue
Block a user