diff options
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 123784e..ffd4c8c 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -62,11 +62,10 @@ pinfo::thisproc (HANDLE h) { cygheap->pid = create_cygwin_pid (); flags |= PID_NEW; + h = INVALID_HANDLE_VALUE; } /* spawnve'd process got pid in parent, cygheap->pid has been set in child_info_spawn::handle_spawn. */ - else if (h == INVALID_HANDLE_VALUE) - h = NULL; init (cygheap->pid, flags, h); procinfo->process_state |= PID_IN_USE; |