Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-12-19 00:28:31 +0300
committerChristopher Faylor <me@cgf.cx>2006-12-19 00:28:31 +0300
commite09c8fde553a85aca48fbed98ca0eb15aa0480a6 (patch)
treedd15f370b291abbcf5eec599cc693cccfa08bb0b
parent505ccc75c4d380084ef11bc51b8d876ba656e729 (diff)
* 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 e4b48a323..d43f624da 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 404591b26..5ec63be8c 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)
{