diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-04-30 13:51:38 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-04-30 13:51:38 +0400 |
commit | 7aefc1596dd41465005dc9d7569a0ff6caa4a118 (patch) | |
tree | 1b062a0108c4c42020ce1eda190f9b0df03f5ab5 /winsup/cygwin/dtable.h | |
parent | 7e2b8e7d2a285b621130654523ed274eb0db277b (diff) |
* dtable.cc (dtable::release): Drop fixup_before handling.
(dtable::fixup_before_fork): Remove.
(dtable::fixup_before_exec): Remove.
* dtable.h (class dtable): Remove cnt_need_fixup_before member.
(dtable::dtable): Accommodate above change.
(dtable::dec_need_fixup_before): Remove.
(dtable::inc_need_fixup_before): Remove.
(dtable::need_fixup_before): Remove.
(dtable::fixup_before_exec): Remove declaration.
(dtable::fixup_before_fork): Ditto.
* fhandler.h (fhandler_base::fixup_before_fork_exec): Remove.
(fhandler_base::need_fixup_before): Remove.
* fork.cc (frok::parent): Drop fixup_before handling.
* spawn.cc (spawn_guts): Ditto.
Diffstat (limited to 'winsup/cygwin/dtable.h')
-rw-r--r-- | winsup/cygwin/dtable.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/winsup/cygwin/dtable.h b/winsup/cygwin/dtable.h index ff82740dc..9940292a5 100644 --- a/winsup/cygwin/dtable.h +++ b/winsup/cygwin/dtable.h @@ -28,30 +28,20 @@ class dtable unsigned farchetype; static const int initial_archetype_size = 8; int first_fd_for_open; - int cnt_need_fixup_before; void lock () {lock_process::locker.acquire ();} void unlock () {lock_process::locker.release ();} public: size_t size; - dtable () : archetypes (NULL), narchetypes (0), farchetype (0), first_fd_for_open(3), cnt_need_fixup_before(0) {} + dtable () : archetypes (NULL), narchetypes (0), farchetype (0), first_fd_for_open(3) {} void init () {first_fd_for_open = 3;} - void dec_need_fixup_before () - { if (cnt_need_fixup_before > 0) --cnt_need_fixup_before; } - void inc_need_fixup_before () - { cnt_need_fixup_before++; } - bool need_fixup_before () - { return cnt_need_fixup_before > 0; } - void move_fd (int, int); int vfork_child_dup (); void vfork_parent_restore (); void vfork_child_fixup (); fhandler_base *dup_worker (fhandler_base *oldfh); int extend (int howmuch); - void fixup_before_exec (DWORD win_proc_id); - void fixup_before_fork (DWORD win_proc_id); void fixup_after_fork (HANDLE); inline int not_open (int fd) { |