]> sourceware.org Git - newlib-cygwin.git/commitdiff
* sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero value.
authorChristopher Faylor <me@cgf.cx>
Wed, 20 Apr 2005 20:43:36 +0000 (20:43 +0000)
committerChristopher Faylor <me@cgf.cx>
Wed, 20 Apr 2005 20:43:36 +0000 (20:43 +0000)
* strace.cc (strace::hello): Report parent pid of executing process.

winsup/cygwin/ChangeLog
winsup/cygwin/path.cc
winsup/cygwin/sigproc.cc

index 9d94aae5b18826bbf82d5d4fc0aa25a9b48956ae..264f7874353a8bc2e4165783a395f4cae95971cb 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-20  Christopher Faylor  <cgf@timesys.com>
+
+       * sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero
+       value.
+
+       * strace.cc (strace::hello): Report parent pid of executing process.
+
 2005-04-20  Christopher Faylor  <cgf@timesys.com>
 
        * path.cc (path_conv::check): Fix problem reading symlinks introduced
index 0d67e72dc73ee0553e5a229f526a3ec4da67447f..575204fe33868fd47997be74dd994e2e9ab1c7b7 100644 (file)
@@ -4073,3 +4073,16 @@ dirname (char *path)
     strcpy (bs, ".");
   return buf;
 }
+
+muto path_uglification::locker;
+
+path_uglification::~path_uglification ()
+{
+  if (locker.ismine ())
+    locker.release ();
+}
+
+win_path::win_path (const char *_path)
+{
+  path = _path;
+}
index 91b28944752eaeba97c0e833ee81b748cc941e88..5550c9138d7e4a3662d95197e7a629100d5eef5a 100644 (file)
@@ -275,7 +275,7 @@ proc_subproc (DWORD what, DWORD val)
     case PROC_WAIT:
       wval->ev = NULL;         // Don't know event flag yet
 
-      if (wval->pid == -1)
+      if (wval->pid == -1 || !wval->pid)
        child = NULL;           // Not looking for a specific pid
       else if (!mychild (wval->pid))
        goto out;               // invalid pid.  flag no such child
This page took 0.038975 seconds and 5 git commands to generate.