Mail Archives: cygwin-developers/1998/02/11/04:18:02
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 -