Christopher Faylor 1fb6667f1c * child_info.h (CURR_CHILD_INFO_MAGIC): Reset.
(child_info::rd_proc_pipe): Declare new field.
(child_info::wr_proc_pipe): Ditto.
(child_info::prefork): Declare new function, derived from previous pinfo
version.
* dcrt0.cc (child_info_fork::handle_fork): Close previous wr_proc_pipe when
appropriate and assign new one from passed-in child_info block.
(child_info_spawn::handle_spawn): Assign our wr_proc_pipe handle from passed-in
child_info block.
* fork.cc (child_info::prefork): Define new function.
(frok::child): Clear rd_proc_pipe and wr_proc_pipe so they will not be closed
by the child_info destructor.
(frok::parent): Use child_info prefork handling, outside of retry loop.  Set
rd_proc_pipe in child's pinfo after successful CreateProcess.  Eliminate
postfork call.
* globals.cc (my_wr_proc_pipe): Define/declare new variable.
* pinfo.cc (pinfo::pending_rd_proc_pipe): Delete.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wait): Assume that rd_proc_pipe is set up correctly prior to call.
(_pinfo::alert_parent): Replace "wr_proc_pipe" with "my_wr_proc_pipe".
* pinfo.h (_pinfo::_wr_proc_pipe): Delete declaration.
(_pinfo::set_rd_proc_pipe): Define new function.
(pinfo::pending_rd_proc_pipe): Delete declaration.
(pinfo::pending_wr_proc_pipe): Ditto.
(pinfo::prefork): Ditto.
(pinfo::postfork): Ditto.
(pinfo::postexec): Ditto.
(pinfo::wr_proc_pipe): Ditto.
* sigproc.cc (child_info::child_info): Clear rd_proc_pipe and wr_proc_pipe.
(child_info::cleanup): Close rd_proc_pipe and wr_proc_pipe if necessary.
(child_info_fork::child_info_fork): Set forker_finished to NULL by default.
(child_info_spawn::child_info_spawn): Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.
(child_info::sync): Ditto.
(child_info_spawn::cleanup): Call child_info::cleanup.
* spawn.cc (child_info_spawn::worker): Remove call to myself.prefork().  Set
wr_proc_pipe when execing or set up new rd_proc_pipe/wr_proc_pipe via
child_info::prefork when spawning.  Remove call to pinfo::postexec.  Set
rd_proc_pipe in child pinfo when spawning.  Use my_wr_proc_pipe rather than
myself->wr_proc_pipe.  Remove call to postfork.
2012-03-20 15:07:30 +00:00
..
2011-12-17 23:39:47 +00:00
2011-12-17 23:39:47 +00:00
2011-12-17 23:39:47 +00:00
2012-02-25 10:48:35 +00:00
2009-01-21 17:14:39 +00:00
2011-04-29 10:38:12 +00:00
2010-08-30 01:57:37 +00:00
2010-08-30 01:57:37 +00:00
2009-09-22 02:49:15 +00:00
2009-09-22 02:49:15 +00:00
2010-01-01 19:28:15 +00:00
2012-01-01 16:57:25 +00:00
2009-01-21 17:14:39 +00:00
2011-02-15 15:56:03 +00:00
2011-06-06 05:02:13 +00:00
2012-03-19 17:49:40 +00:00
2011-12-17 23:39:47 +00:00
2009-07-07 20:12:44 +00:00
2012-02-22 01:58:24 +00:00
2011-06-06 05:02:13 +00:00
2011-06-06 05:02:13 +00:00
2011-12-09 06:57:21 +00:00
2011-06-06 05:02:13 +00:00
2011-11-14 01:37:02 +00:00
2010-08-30 01:57:37 +00:00
2011-04-04 12:23:36 +00:00
2011-09-01 19:19:29 +00:00
2012-03-19 17:49:40 +00:00
2010-07-19 18:22:40 +00:00
2010-04-10 05:47:54 +00:00
2011-06-06 05:02:13 +00:00
2012-02-16 11:02:05 +00:00
2009-01-21 17:14:39 +00:00
2012-02-16 11:02:05 +00:00
2011-06-06 05:02:13 +00:00
2012-02-22 01:58:24 +00:00
2010-08-30 01:57:37 +00:00
2011-06-06 05:02:13 +00:00
2011-12-17 23:39:47 +00:00
2009-01-21 17:14:39 +00:00
2011-12-17 23:39:47 +00:00
2011-05-04 22:12:15 +00:00
2011-11-29 17:26:57 +00:00
2012-02-22 01:58:24 +00:00
2012-02-28 14:03:03 +00:00
2010-08-30 01:57:37 +00:00
2010-08-30 01:57:37 +00:00
2010-06-21 19:55:12 +00:00
2011-12-30 20:22:28 +00:00
2009-08-01 19:52:46 +00:00
2011-01-20 11:09:21 +00:00
2012-03-19 17:49:40 +00:00
2012-03-04 13:19:21 +00:00