diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-02 18:37:17 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-02 18:37:17 +0000 |
commit | 8b19b43d001f7c842147b366211a25edea7cbf1f (patch) | |
tree | 29aa73bb038ceaaacdd99d3175040d50990afa0c /winsup/cygwin/dtable.h | |
parent | 3efc65f7df1be5ce066e2da0d6c21f68aec71dbf (diff) | |
download | cygnal-8b19b43d001f7c842147b366211a25edea7cbf1f.tar.gz cygnal-8b19b43d001f7c842147b366211a25edea7cbf1f.tar.bz2 cygnal-8b19b43d001f7c842147b366211a25edea7cbf1f.zip |
* dll_init.cc (dll_list::load_after_fork): Don't revert to LoadLibrary if
LoadLibraryEx fails.
* dtable.cc (dtable::dec_console_fds): Eliminate.
(dtable::release): Don't treat console specially.
(dtable::build_fhandler): Ditto.
* dtable.h (console_fds): Eliminate.
(dtable::dec_console_fds): Eliminate.
(dtable::inc_console_fds): Eliminate.
* fhandler.h (fhandler_console::open_fhs): New static element.
* fhandler_console.cc (fhandler_console::open): Increment open_fs.
(fhandler_console::close): Call FreeConsole if no more open consoles and ctty
is not associated with the console.
* syscalls.cc (setsid): Simplify check for when to call FreeConsole.
(check_pty_fds): Eliminate definition.
* winsup.h (check_pty_fds): Eliminate declaration.
Diffstat (limited to 'winsup/cygwin/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index 6e382a629..d73288f07 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -20,11 +20,10 @@ class dtable fhandler_base **fds_on_hold; int first_fd_for_open; int cnt_need_fixup_before; - int console_fds; public: size_t size; - dtable () : first_fd_for_open(3), cnt_need_fixup_before(0), console_fds(0) {} + dtable () : first_fd_for_open(3), cnt_need_fixup_before(0) {} void init () {first_fd_for_open = 3;} void dec_need_fixup_before () @@ -34,12 +33,6 @@ public: BOOL need_fixup_before () { return cnt_need_fixup_before > 0; } - void dec_console_fds (); - void inc_console_fds () - { console_fds++; } - BOOL has_console_fds () - { return console_fds > 0; } - int vfork_child_dup (); void vfork_parent_restore (); void vfork_child_fixup (); |