diff options
author | Takashi Yano <takashi.yano@nifty.ne.jp> | 2020-01-01 09:49:41 +0300 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2020-01-13 18:51:17 +0300 |
commit | fd03749b9c255d6f78d71c65fb4f49d8f766a629 (patch) | |
tree | 97b1cb7fb4f6c46acab6af0639b0186330daa959 | |
parent | 4ddf5903fd24feaa6f75ffb12f9cafdd266b386a (diff) |
Cygwin: pty: Remove destructor for fhandler_pty_master class.
- The destructor for fhandler_pty_master class does not seem to be
necessary anymore. Therefore, it has been removed.
-rw-r--r-- | winsup/cygwin/fhandler.h | 1 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h index 3954c37d1..4a71c1628 100644 --- a/winsup/cygwin/fhandler.h +++ b/winsup/cygwin/fhandler.h @@ -2218,7 +2218,6 @@ public: HANDLE get_echo_handle () const { return echo_r; } /* Constructor */ fhandler_pty_master (int); - ~fhandler_pty_master (); DWORD pty_master_thread (); DWORD pty_master_fwd_thread (); diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index f10f0fc61..a235ea708 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -2126,15 +2126,6 @@ fhandler_pty_master::fhandler_pty_master (int unit) set_name ("/dev/ptmx"); } -fhandler_pty_master::~fhandler_pty_master () -{ - /* Without this wait, helper process for pseudo console - sometimes remains running after the pty session is - closed. The reason is not clear. */ - if (to_master && from_master) - Sleep (20); -} - int fhandler_pty_master::open (int flags, mode_t) { |