OSDN Git Service

* sigproc.cc (proc_subproc): Fix handling of waiting for pids with zero value.
authorcgf <cgf>
Wed, 20 Apr 2005 20:43:36 +0000 (20:43 +0000)
committercgf <cgf>
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 9d94aae..264f787 100644 (file)
@@ -1,5 +1,12 @@
 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
        in below change by reverting the change and adding an additional test
        for nonexistent files in /proc.
index 0d67e72..575204f 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 91b2894..5550c91 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