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'" Cc: Geoffrey Noer 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.