diff options
author | Christopher Faylor <me@cgf.cx> | 2001-07-17 03:41:52 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2001-07-17 03:41:52 +0000 |
commit | 5457dfcb8174f0ff25a0522050c1d79e710a68df (patch) | |
tree | 65df1229b3c4d86e54d861f70fc1f2458edc4736 /winsup/cygwin/child_info.h | |
parent | 30640285c33dedac2099ebd0492b86b3bbabaaad (diff) | |
download | cygnal-5457dfcb8174f0ff25a0522050c1d79e710a68df.tar.gz cygnal-5457dfcb8174f0ff25a0522050c1d79e710a68df.tar.bz2 cygnal-5457dfcb8174f0ff25a0522050c1d79e710a68df.zip |
* child_info.h: Bump magic number.
(class child_info): Add an element.
* cygheap.cc (init_cheap): Allocate cygwin heap in shared memory area.
(cygheap_fixup_in_child): Map cygwin heap, passed from parent via shared memory
into correct address.
(cygheap_setup_for_child): New function.
* cygheap.h: Declare new functions.
* dcrt0.cc (dll_crt0_1): Accomodate new cygheap_fixup_in_child arguments.
Avoid protecting subproc_ready unless it is spawn/nowait.
* fork.cc (fork_parent): Use new cygheap_setup_for_child function to setup
cygwin heap info. Close passed cygheap shared memory handle.
* spawn.cc (spawn_guts): Ditto. Also, reorganize to avoid synchronization
between parent and child in non-P_OVERLAY case.
* sigproc.cc (wait_sig): Only signal subproc_ready when execing.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index 5c9904e61..c838ceda6 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -12,7 +12,7 @@ details. */ enum { - PROC_MAGIC = 0xaf0ff000, + PROC_MAGIC = 0xaf10f000, PROC_FORK = PROC_MAGIC + 1, PROC_EXEC = PROC_MAGIC + 2, PROC_SPAWN = PROC_MAGIC + 3, @@ -39,6 +39,7 @@ public: HANDLE pppid_handle; init_cygheap *cygheap; void *cygheap_max; + HANDLE cygheap_h; }; class child_info_fork: public child_info |