aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-12-18 21:28:31 +0000
committerChristopher Faylor <me@cgf.cx>2006-12-18 21:28:31 +0000
commite09c8fde553a85aca48fbed98ca0eb15aa0480a6 (patch)
treedd15f370b291abbcf5eec599cc693cccfa08bb0b
parent505ccc75c4d380084ef11bc51b8d876ba656e729 (diff)
downloadnewlib-e09c8fde553a85aca48fbed98ca0eb15aa0480a6.zip
newlib-e09c8fde553a85aca48fbed98ca0eb15aa0480a6.tar.gz
newlib-e09c8fde553a85aca48fbed98ca0eb15aa0480a6.tar.bz2
* pinfo.cc (set_myself): Use a more foolproof method for determining if the
current process was started from another cygiwn process.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/pinfo.cc3
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index e4b48a3..d43f624 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2006-12-18 Christopher Faylor <me@cgf.cx>
+
+ * pinfo.cc (set_myself): Use a more foolproof method for determining if
+ the current process was started from another cygiwn process.
+
2006-12-15 Pierre A. Humblet <Pierre.Humblet@ieee.org>
* libc/minires-os-if.c (cygwin_query): Remove ERROR_PROC_NOT_FOUND case.
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc
index 404591b..5ec63be 100644
--- a/winsup/cygwin/pinfo.cc
+++ b/winsup/cygwin/pinfo.cc
@@ -64,7 +64,8 @@ set_myself (HANDLE h)
myself->exec_sendsig = NULL;
myself->exec_dwProcessId = 0;
}
- else if (!myself->wr_proc_pipe)
+ else if (!child_proc_info) /* child_proc_info is only set when this process
+ was started by another cygwin process */
myself->start_time = time (NULL); /* Register our starting time. */
else if (cygheap->pid_handle)
{