diff options
author | Christopher Faylor <me@cgf.cx> | 2012-03-21 09:23:13 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-03-21 09:23:13 +0400 |
commit | 6daf4afb11869add20516ef4ae451898840f1ffa (patch) | |
tree | ad372c075bc4caccb15cf0d950255fe80700b631 /winsup/cygwin/child_info.h | |
parent | e102a69b3d82e44bea7347fd8befefafc157f898 (diff) |
* child_info.h: Reset magic number.
(child_info_spawn::wait_for_myself): Move function to sigproc.cc.
* pinfo.cc (is_toplevel_proc): Delete unneeded variable.
* sigproc.cc (child_info_spawn::wait_for_myself): Move function from header to
here. Do all setup required to properly wait for top-level execed process to
exit.
* spawn.cc (child_info_spawn::worker): Attempt to properly handle _P_DETACH.
Set wr_proc_pipe if top-level process even when execing. Just call
wait_for_myself() to... wait for myself. Don't call cleanup twice.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 8d1d4e906..981222032 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -35,7 +35,7 @@ enum child_status #define EXEC_MAGIC_SIZE sizeof(child_info) /* Change this value if you get a message indicating that it is out-of-sync. */ -#define CURR_CHILD_INFO_MAGIC 0xa49e665eU +#define CURR_CHILD_INFO_MAGIC 0x4a52da7eU #define NPROCS 256 @@ -158,7 +158,7 @@ public: return true; } } - void wait_for_myself () { WaitForSingleObject (ev, INFINITE); } + void wait_for_myself (); bool has_execed () const { if (hExeced) |