diff options
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 b77b4c0d2..a7b650a98 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -173,7 +173,8 @@ void pinfo::init (pid_t n, DWORD flag, HANDLE h0) { h = NULL; - if (myself && n == myself->pid) + if (myself && !(flag & PID_EXECED) + && (n == myself->pid || (DWORD) n == myself->dwProcessId)) { procinfo = myself; destroy = 0; |