OSDN Git Service

* child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
authorcgf <cgf>
Wed, 16 Nov 2011 04:09:30 +0000 (04:09 +0000)
committercgf <cgf>
Wed, 16 Nov 2011 04:09:30 +0000 (04:09 +0000)
commit2f40d6d18473f6a4115ceb526d7c00a599575911
treedd2f05b5c621a09365a910008d74a54b7f91f485
parentf36a8478c4547735562ee8a489f54d972989d5e5
* 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.
winsup/cygwin/ChangeLog
winsup/cygwin/child_info.h
winsup/cygwin/dcrt0.cc
winsup/cygwin/sigproc.cc
winsup/cygwin/spawn.cc