public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: pty: Remove destructor for fhandler_pty_master class.
@ 2020-01-13 16:00 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2020-01-13 16:00 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=fd03749b9c255d6f78d71c65fb4f49d8f766a629

commit fd03749b9c255d6f78d71c65fb4f49d8f766a629
Author: Takashi Yano <takashi.yano@nifty.ne.jp>
Date:   Wed Jan 1 15:49:41 2020 +0900

    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.

Diff:
---
 winsup/cygwin/fhandler.h      | 1 -
 winsup/cygwin/fhandler_tty.cc | 9 ---------
 2 files changed, 10 deletions(-)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 3954c37..4a71c16 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 f10f0fc..a235ea7 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)
 {


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-13 16:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-13 16:00 [newlib-cygwin] Cygwin: pty: Remove destructor for fhandler_pty_master class Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).