diff options
author | Christopher Faylor <me@cgf.cx> | 2011-11-16 04:09:33 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-11-16 04:09:33 +0000 |
commit | 7b2740dda35981d44331c77354b6d9c3d05b1338 (patch) | |
tree | 6c3b23fb5be144d578cd137f49859b26a1d57665 /winsup/cygwin/spawn.cc | |
parent | f32d96ff9927f60980c14c1bb2d5525d8d683583 (diff) | |
download | cygnal-7b2740dda35981d44331c77354b6d9c3d05b1338.tar.gz cygnal-7b2740dda35981d44331c77354b6d9c3d05b1338.tar.bz2 cygnal-7b2740dda35981d44331c77354b6d9c3d05b1338.zip |
* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(cygheap_exec_info::nchildren): Move from child_info_spawn.
(cygheap_exec_info::cchildren): Ditto.
(cygheap_exec_info::record_children): Declare new function.
(cygheap_exec_info::reattach_children): Ditto.
(cygheap_exec_info::alloc): Ditto.
(child_info_spawn::nchildren): Move to cygheap_exec_info.
(child_info_spawn::cchildren): Ditto.
* sigproc.cc (cygheap_exec_info::alloc): Define new function.
(child_info_spawn::cleanup): Accommodate move of children info to
cygheap_exec_info.
(cygheap_exec_info::record_children): Define new function.
(cygheap_exec_info::reattach_children): Ditto.
(child_info_spawn::record_children): Use cygheap_exec_info function to
accomplish this task.
(child_info_spawn::reattach_children): Ditto.
* spawn.cc (child_info_spawn::worker): Allocate moreinfo using
cygheap_exec_info::alloc.
* dcrt0.cc (child_info_fork::alloc_stack_hard_way): Use abort for the error to
avoid a retry.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index b250db19f..25072a886 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -354,8 +354,7 @@ child_info_spawn::worker (const char *prog_arg, const char *const *argv, else chtype = _CH_EXEC; - moreinfo = (cygheap_exec_info *) ccalloc_abort (HEAP_1_EXEC, 1, - sizeof (cygheap_exec_info)); + moreinfo = cygheap_exec_info::alloc (); /* CreateProcess takes one long string that is the command line (sigh). We need to quote any argument that has whitespace or embedded "'s. */ |