summaryrefslogtreecommitdiff
path: root/winsup/cygwin/child_info.h
diff options
context:
space:
mode:
authorChristopher Faylor <cgf@redhat.com>2004-11-24 05:48:28 +0000
committerChristopher Faylor <cgf@redhat.com>2004-11-24 05:48:28 +0000
commit721f24da41302a9a98c81476cf4247c386f480ad (patch)
tree466e80315f518eb5f5dab2a34dd55d50ade6e582 /winsup/cygwin/child_info.h
parentb672e14da40309c3dc402cb605ca5150d812f6ad (diff)
downloadgdb-721f24da41302a9a98c81476cf4247c386f480ad.tar.gz
* child_info.h (child_info_spawn::hexec_proc): Eliminate.noreparentcvs/noreparent
* dcrt0.cc (dll_crt0_0): Remove hexec_proc stuff. * fork.cc (fork_child): Remove call to pinfo_fixup_after_fork. * pinfo.cc (set_myself): Close and zero pid_handle if set. (pinfo_fixup_after_fork): Delete. (proc_waiter): Don't close vchild.hProcess here. Do that when we are remove the vchild from procs. Save hProcess as pid_handle only on first reparent operation. (pinfo::wait): Don't set pid_handle here. (pinfo::alert_parent): Always try to send signal. If unsuccessful then close and zero wr_proc_pipe. * pinfo.h (pinfo::pinfo): Make sure that appropriate parts of the class are zeroed on construction. (pinfo::alert_parent): Take char argument. (pinfo_fixup_after_fork): Delete declaration. (hexec_proc): Ditto. * sigproc.cc (remove_proc): Close pid_handle and hProcess if appropriate. * spawn.cc (spawn_guts): Set cygheap->pid_handle on first exec.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r--winsup/cygwin/child_info.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h
index e3d643a4f96..7cbcb6fa5d8 100644
--- a/winsup/cygwin/child_info.h
+++ b/winsup/cygwin/child_info.h
@@ -29,7 +29,7 @@ enum
#define EXEC_MAGIC_SIZE sizeof(child_info)
-#define CURR_CHILD_INFO_MAGIC 0x568a5527U
+#define CURR_CHILD_INFO_MAGIC 0x83e9a7b7U
/* NOTE: Do not make gratuitous changes to the names or organization of the
below class. The layout is checksummed to determine compatibility between
@@ -82,7 +82,6 @@ class child_info_spawn: public child_info
{
public:
cygheap_exec_info *moreinfo;
- HANDLE hexec_proc;
child_info_spawn (): moreinfo (NULL) {}
~child_info_spawn ()