diff options
author | Christopher Faylor <me@cgf.cx> | 2009-06-28 19:23:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-06-28 19:23:13 +0000 |
commit | c81ceaefec39454f5f76f91be2885d577a668527 (patch) | |
tree | cb9c49bf0597eb5d22275fdd8a7f955b7b7f6eee /winsup/cygwin/fhandler.h | |
parent | 91000b5d66688fe62926edc72a00f00c9cda30ab (diff) | |
download | cygnal-c81ceaefec39454f5f76f91be2885d577a668527.tar.gz cygnal-c81ceaefec39454f5f76f91be2885d577a668527.tar.bz2 cygnal-c81ceaefec39454f5f76f91be2885d577a668527.zip |
* fhandler.h (fhandler_base::has_ongoing_io): Declare new function.
* fhandler.cc (fhandler_base::has_ongoing_io): Define new function.
(fhandler_base::read_overlapped): Use has_ongoing_io to avoid writing when
handle has not completed last I/O.
(fhandler_base::write_overlapped): Ditto.
* select.cc (peek_pipe): Be more careful about accessing hEvent field from
get_overlapped().
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 1efd8fd58..a4cc50f56 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -302,6 +302,7 @@ class fhandler_base virtual char const *ttyname () { return get_name (); } virtual void __stdcall read (void *ptr, size_t& len) __attribute__ ((regparm (3))); virtual void __stdcall read_overlapped (void *ptr, size_t& len) __attribute__ ((regparm (3))); + virtual bool __stdcall has_ongoing_io () __attribute__ ((regparm (1))); virtual int write (const void *ptr, size_t len); virtual int __stdcall write_overlapped (const void *ptr, size_t len); virtual ssize_t readv (const struct iovec *, int iovcnt, ssize_t tot = -1); |