www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/02/11/04:18:02

From: sos AT prospect DOT com DOT ru (Sergey Okhapkin)
Subject: RE: Winsup snapshot du jour 2/10/98
11 Feb 1998 04:18:02 -0800 :
Message-ID: <01BD36F6.185106E0.cygnus.cygwin32.developers@gater.krystalbank.msk.ru>
Reply-To: cygwin32-developers AT cygnus DOT com
To: "'cygwin32-developers AT cygnus DOT com'" <cygwin32-developers AT cygnus DOT com>
Cc: Geoffrey Noer <noer AT cygnus DOT com>

Geoffrey Noer wrote:
> Since Chris and Sergey keep bombarding me with patches :-), I've
> made another snapshot available in the normal place.  All patches that
> I have received should be in at this point...

:-)

strace.cc	(strace_open): do not close u->strace_file if it points to stderr.


H:\usr\src\cygnus\cdk\winsup>diff -up strace.cc.orig strace.cc
--- strace.cc.orig      Mon Feb 09 14:29:49 1998
+++ strace.cc   Wed Feb 11 13:52:42 1998
@@ -39,7 +39,8 @@ strace_open (char *fn)
   sa.lpSecurityDescriptor = NULL;
   sa.bInheritHandle = TRUE;

-  if (u->strace_file != NULL)
+  if (u->strace_file != NULL &&
+      u->strace_file != GetStdHandle (STD_ERROR_HANDLE))
     CloseHandle (u->strace_file);

   /* Use OPEN_ALWAYS so forks don't clobber each other.  */


-- 
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.


- Raw text -


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