diff options
author | Christopher Faylor <me@cgf.cx> | 2012-05-15 02:42:56 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-05-15 02:42:56 +0400 |
commit | 3de7be4c1debaa8fcd27f8fc15509179fdb37b9f (patch) | |
tree | 4172968a5e085465b58b538e6401f6ecdb92b2a6 /winsup/cygwin/child_info.h | |
parent | 77009cee1e0410a146ed4f7090e01c8a56cba670 (diff) |
* DevNotes: Add entry cgf-000007.
* child_info.h (child_info_spawn::parent_winpid): Declare new field.
(child_info_spawn::get_parent_handle): Declare new function.
* dcrt0.cc (child_info_spawn::get_parent_handle): Define new function.
(child_info_spawn::handle_spawn): Recreate parent handle if possible when
dynamically loaded. Don't mess with parent handle if it's NULL.
* spawn.cc (child_info_spawn::worker): Set parent_winpid appropriately.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 36a22539c..ea23fc21e 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -66,6 +66,7 @@ public: HANDLE subproc_ready; // used for synchronization with parent HANDLE user_h; HANDLE parent; + DWORD parent_winpid; DWORD cygheap_reserve_sz; unsigned fhandler_union_cb; DWORD exit_code; // process exit code @@ -175,6 +176,7 @@ public: lock->release (); return !!hExeced; } + bool get_parent_handle (); bool has_execed_cygwin () const { return iscygwin () && has_execed (); } operator HANDLE& () {return hExeced;} int worker (const char *, const char *const *, const char *const [], int, |