winsup/cygwin ChangeLog child_info.h dcrt0.cc ...

cgf@cygwin.com cgf@cygwin.com
Wed Oct 26 19:42:00 GMT 2011


CVSROOT:	/cvs/uberbaum
Module name:	winsup
Changes by:	cgf@sourceware.org	2011-10-26 19:42:39

Modified files:
	cygwin         : ChangeLog child_info.h dcrt0.cc globals.cc 
	                 pinfo.cc pinfo.h sigproc.cc sigproc.h spawn.cc 

Log message:
	* child_info.h (cchildren): New struct.
	(child_info_spawn::nchildren): Rename from nprocs.
	(child_info_spawn::children): Change type to cchildren for more bookkeeping
	possibilities.
	(child_info_spawn::child_info_spawn): Clear nchildren.
	(child_info_spawn::record_children): Declare new function.
	(child_info_spawn::reattach_children): Ditto.
	* dcrt0.cc (child_info_spawn::handle_spawn): Call reattach_children to gather
	list of processes we are potentially waiting for.
	* pinfo.h (pinfo::pinfo): Make sure that rd_proc_pipe is always cleared.
	(pinfo::reattach): New function.
	* sigproc.cc: Move pinfo.h earlier so that it can be used in sigproc.h.
	(get_proc_lock): Don't bother with a lock during DLL initialization.
	(proc_subproc): Handle PROC_REATTACH_CHILD.
	(proc_terminate): Orphan children only when we are not an execed process or
	when the pid is about to be occupied by a non-cygwin process.
	(child_info_spawn::record_children): Define new function.
	(child_info_spawn::reattach_children): Ditto.
	* sigproc.h (procstuff): Define PROC_REATTACH_CHILD and renumber other
	elements.
	* spawn.cc (spawn_guts): Record any to-be-waited-for subprocesses if about to
	exec a cygwin process.
	* sigproc.cc (sig_send): Fix harmless transposition of fifth and six arguments
	to DuplicateHandle().
	(child_info::child_info): Ditto.
	* globals.cc (hExeced): Make NO_COPY.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaum&r1=1.5536&r2=1.5537
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/child_info.h.diff?cvsroot=uberbaum&r1=1.80&r2=1.81
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/dcrt0.cc.diff?cvsroot=uberbaum&r1=1.407&r2=1.408
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/globals.cc.diff?cvsroot=uberbaum&r1=1.30&r2=1.31
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/pinfo.cc.diff?cvsroot=uberbaum&r1=1.281&r2=1.282
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/pinfo.h.diff?cvsroot=uberbaum&r1=1.118&r2=1.119
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.cc.diff?cvsroot=uberbaum&r1=1.346&r2=1.347
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.h.diff?cvsroot=uberbaum&r1=1.92&r2=1.93
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/spawn.cc.diff?cvsroot=uberbaum&r1=1.308&r2=1.309



More information about the Cygwin-cvs mailing list