From 82b7b4fd4fba28d054161f104f6bd8471f73ab14 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 3 Dec 2004 04:46:00 +0000 Subject: * child_info.h (child_info_fork::parent_wr_proc_pipe): New element. * fork.cc (fork_parent): Set parent_wr_proc. * pinfo.cc (set_myself): Close child_proc_info->parent_wr_proc if it exists rather than trying to get value from parent _pinfo. * pinfo.h (enum parent_aleter): New enum. (pinfo::alert_parent): Declare as returning a value. (pinfo::parent_alive): New function. * pinfo.cc (pinfo::alert_parent): Set wr_proc_pipe to invalid non-NULL value when parent disappears. Return success of operation. (proc_waiter): Use __ALERT_* enum for control since these are not really signals. Implement __ALERT_ALIVE. * sigproc.cc (my_parent_is_alive): Eliminate. * sigproc.h (my_parent_is_alive): Ditto for declaration. (__SIGREPARENT): Eliminate. --- winsup/cygwin/child_info.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/child_info.h') diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 7cbcb6fa5..48186e67c 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 0x83e9a7b7U +#define CURR_CHILD_INFO_MAGIC 0x694cd4b8U /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -49,6 +49,7 @@ public: void *cygheap_max; DWORD cygheap_reserve_sz; HANDLE cygheap_h; + HANDLE parent_wr_proc_pipe; unsigned fhandler_union_cb; }; -- cgit v1.2.3