diff options
author | Christopher Faylor <me@cgf.cx> | 2012-04-18 05:57:38 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-04-18 05:57:38 +0000 |
commit | 55dcba98dbd120db696fba3dda62a348599a2889 (patch) | |
tree | 5be98efdaef583aac94002838c200fa23adf2889 /winsup/cygwin/fhandler.h | |
parent | c1d26a99cd72be7ab41411d7c49b7dc6c063734d (diff) | |
download | cygnal-55dcba98dbd120db696fba3dda62a348599a2889.tar.gz cygnal-55dcba98dbd120db696fba3dda62a348599a2889.tar.bz2 cygnal-55dcba98dbd120db696fba3dda62a348599a2889.zip |
* fhandler.h (fhandler_base::nohandle): Revert to standard implementation.
* dtable.cc (dtable::fixup_after_exec): Specifically reject releasing
nohandle() type fhandlers rather than relying on contents of io_handle.
(dtable::fixup_after_fork): Ditto.
* fhandler_termios.cc: Add includes necessary for definitions of have_execed
and have_execed_cygwin.
(fhandler_termios::sigflush): Don't flush console input when we've started a
non-Cygwin process.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r-- | winsup/cygwin/fhandler.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 20b91392c..a4c4cd138 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -241,20 +241,13 @@ class fhandler_base IMPLEMENT_STATUS_FLAG (bool, wbinset) IMPLEMENT_STATUS_FLAG (bool, rbinset) + IMPLEMENT_STATUS_FLAG (bool, nohandle) IMPLEMENT_STATUS_FLAG (bool, did_lseek) IMPLEMENT_STATUS_FLAG (query_state, query_open) IMPLEMENT_STATUS_FLAG (bool, close_on_exec) IMPLEMENT_STATUS_FLAG (bool, need_fork_fixup) IMPLEMENT_STATUS_FLAG (bool, isclosed) - bool nohandle () const {return !!status.nohandle;} - bool nohandle (bool val) - { - if ((status.nohandle = val)) - io_handle = INVALID_HANDLE_VALUE; - return val; - } - int get_default_fmode (int flags); virtual void set_close_on_exec (bool val); |