diff options
author | Christopher Faylor <me@cgf.cx> | 2000-10-12 22:15:47 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2000-10-12 22:15:47 +0000 |
commit | 1ec4f618feb517c020ff25784bedc66dd4f6f0e2 (patch) | |
tree | d146a1dab1ba5d6fcd6411bc85c783becac7f54a /winsup/cygwin/child_info.h | |
parent | 5e0d760fb82d2d04c34306803253777aa5040fce (diff) | |
download | newlib-1ec4f618feb517c020ff25784bedc66dd4f6f0e2.zip newlib-1ec4f618feb517c020ff25784bedc66dd4f6f0e2.tar.gz newlib-1ec4f618feb517c020ff25784bedc66dd4f6f0e2.tar.bz2 |
* child_info: Bump child_info "version".
(child_info): Move some fields from child_info_spawn to here.
* cygheap.cc: Make cygheap pointers NOCOPY.
* dcrt0.cc (dll_crt0_1): Copy cygwin heap here regardless of whether we've been
forked or execed.
* dtable.cc (dtable::fixup_after_fork): Just release close-on-exec fds.
* exceptions.cc (stackdump): Respond to C warning.
* fork.cc: Reorganize to minimize stack copying.
(fork_child): New function.
(fork_parent): Ditto.
(sync_with_child): Don't suspend the forkee.
(sync_with_parent): Ditto. Make into a function.
* heap.cc (heap_init): Add some debugging output.
* path.cc (path_conv::check): Add an assertion.
(has_suffix): Ditto.
* security.cc (get_pw_sid): Defend against NULL.
* sigproc.cc (proc_subproc): Fix debugging output.
(wait_sig): Ditto.
* strace.cc: Make statics NO_COPY throughout.
(strace::vsprntf): Defend against NULL.
Diffstat (limited to 'winsup/cygwin/child_info.h')
-rw-r--r-- | winsup/cygwin/child_info.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/winsup/cygwin/child_info.h b/winsup/cygwin/child_info.h index afea34b..b3018c6 100644 --- a/winsup/cygwin/child_info.h +++ b/winsup/cygwin/child_info.h @@ -12,7 +12,7 @@ details. */ enum { - PROC_MAGIC = 0xaf08f000, + PROC_MAGIC = 0xaf09f000, PROC_FORK = PROC_MAGIC + 1, PROC_EXEC = PROC_MAGIC + 2, PROC_SPAWN = PROC_MAGIC + 3, @@ -37,6 +37,9 @@ public: HANDLE shared_h; HANDLE console_h; HANDLE parent_alive; // handle of thread used to track children + HANDLE parent; + void *cygheap; + void *cygheap_max; }; class child_info_fork: public child_info @@ -72,13 +75,9 @@ public: class child_info_spawn: public child_info { public: - HANDLE parent; - void *cygheap; - void *cygheap_max; cygheap_exec_info *moreinfo; - child_info_spawn (): parent (NULL), cygheap (NULL), - cygheap_max (NULL), moreinfo (NULL) {} + child_info_spawn (): moreinfo (NULL) {} ~child_info_spawn () { if (parent) |