diff options
author | Christopher Faylor <me@cgf.cx> | 2006-12-19 00:28:31 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2006-12-19 00:28:31 +0300 |
commit | e09c8fde553a85aca48fbed98ca0eb15aa0480a6 (patch) | |
tree | dd15f370b291abbcf5eec599cc693cccfa08bb0b /winsup/cygwin/pinfo.cc | |
parent | 505ccc75c4d380084ef11bc51b8d876ba656e729 (diff) |
* pinfo.cc (set_myself): Use a more foolproof method for determining if the
current process was started from another cygiwn process.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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) { |