]> sourceware.org Git - newlib-cygwin.git/commitdiff
* strace.cc (strace::vsprntf): Avoid printing a zero pid.
authorChristopher Faylor <me@cgf.cx>
Tue, 27 Sep 2005 18:54:32 +0000 (18:54 +0000)
committerChristopher Faylor <me@cgf.cx>
Tue, 27 Sep 2005 18:54:32 +0000 (18:54 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/strace.cc

index 59e1f023bdd4ec8dfc7599020669a6c8bb8b4749..f58ed1ed91a083525911d9cd44b7b6e221526c29 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-27  Christopher Faylor  <cgf@timesys.com>
+
+       * strace.cc (strace::vsprntf): Avoid printing a zero pid.
+
 2005-09-27  Corinna Vinschen  <corinna@vinschen.de>
 
        * init.cc (dll_entry): Call IsWow64Process with GetCurrentProcess
index 104be711b2f9ab2993d9e6e95c1fcf61388f7a10..54fab722a49f3d7232b4a051ac87fad4d3064976 100644 (file)
@@ -149,7 +149,7 @@ strace::vsprntf (char *buf, const char *func, const char *infmt, va_list ap)
        *p = '\000';
       p = progname;
       count = __small_sprintf (buf, fmt, p && *p ? p : "?",
-                             myself ? myself->pid : GetCurrentProcessId (),
+                             (myself && myself->pid) ? myself->pid : GetCurrentProcessId (),
                               execing ? "!" : "");
       if (func)
        count += getfunc (buf + count, func);
This page took 0.03721 seconds and 5 git commands to generate.