From e09c8fde553a85aca48fbed98ca0eb15aa0480a6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 18 Dec 2006 21:28:31 +0000 Subject: [PATCH] * pinfo.cc (set_myself): Use a more foolproof method for determining if the current process was started from another cygiwn process. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/pinfo.cc | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * 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 * 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) {