delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/03/12/08:03:50

From: cgf AT bbc DOT com (Christopher Faylor)
Subject: Missing patch in latest snapshot
12 Mar 1998 08:03:50 -0800 :
Message-ID: <EppM6z.1u3.cygnus.cygwin32.developers@bbc.com>
Reply-To: cgf AT bbc DOT com
To: cygwin32-developers AT cygnus DOT com

Without this a dup on an fd opened to a tty will reset flags.

	patch from cgf AT bbc DOT com (Christopher Faylor)
	* tty.cc (fhandler_tty_slave::dup): Don't set flags to 0.  Flags
	have already been set in wrapper.

*** tty.cc~	Sun Mar 01 16:09:05 1998
--- tty.cc	Sun Mar 01 16:16:01 1998
*************** fhandler_tty_slave::dup (fhandler_base *
*** 1243,1249 ****
    attach_tty (ttynum);
    fts->ttynum = ttynum;
    fts->set_close_on_exec (0);
-   fts->set_flags (0);
  
    const HANDLE proc = GetCurrentProcess ();
    HANDLE nh;
--- 1243,1248 ----
-- 
http://www.bbc.com/	cgf AT bbc DOT com			"Strange how unreal
VMS=>UNIX Solutions	Boston Business Computing	 the real can be."

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019