This is the mail archive of the cygwin-cvs@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

winsup/cygwin ChangeLog fork.cc pinfo.cc pinfo ...


CVSROOT:	/cvs/uberbaum
Module name:	winsup
Changes by:	cgf@sourceware.org	2012-03-16 20:20:29

Modified files:
	cygwin         : ChangeLog fork.cc pinfo.cc pinfo.h sigproc.h 
	                 spawn.cc sync.h 

Log message:
	* fork.cc (lock_signals): Move to sigproc.h.
	(lock_pthread): Ditto.
	(hold_everything): Ditto.
	(frok::parent): Call myself.prefork() just before calling CreateProcess.  Call
	myself.postfork () on function exit.
	* pinfo.cc (pinfo::pending_rd_proc_pipe): Define.
	(pinfo::pending_wr_proc_pipe): Ditto.
	(_pinfo::dup_proc_pipe): Delete.
	(pinfo::wait): Move pipe creation into pinfo::prefork.  Set pipe variables from
	pending_*.
	(_pinfo::sync_proc_pipe): Delete.
	(_pinfo::proc_pipe_owner): Ditto.
	(pinfo::prefork): Define new function.
	(pinfo::postfork): Ditto.
	(pinfo::postexec): Ditto.
	(_pinfo::alert_parent): Remove obsolete call to sync_proc_pipe.
	(_pinfo::dup_proc_pipe): Delete declaration.
	(_pinfo::sync_proc_pipe): Ditto.
	(pinfo::pending_rd_proc_pipe): Declare.
	(pinfo::pending_wr_proc_pipe): Ditto.
	(pinfo::prefork): Declare new function.
	(pinfo::postfork): Ditto.
	(pinfo::postexec): Ditto.
	(pinfo::wr_proc_pipe): Define new wrapper function.
	* sigproc.h: Include "sync.h".  Move locking functions from fork to here.
	* spawn.cc (child_info_spawn::worker): Delete now-unneeded requirement to
	record orig_wr_proc_pipe.  Call hold_everything prior to doing anything.  Call
	myself.prefork() if spawning.  Replace wr_proc_pipe synchronization with call
	to myself.postexec().  Call myself.postfork() if not execing.
	* sync.h: Replace #ifdef wrapper with "#pragma once".

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/ChangeLog.diff?cvsroot=uberbaum&r1=1.5750&r2=1.5751
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/fork.cc.diff?cvsroot=uberbaum&r1=1.232&r2=1.233
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/pinfo.cc.diff?cvsroot=uberbaum&r1=1.299&r2=1.300
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/pinfo.h.diff?cvsroot=uberbaum&r1=1.125&r2=1.126
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sigproc.h.diff?cvsroot=uberbaum&r1=1.105&r2=1.106
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/spawn.cc.diff?cvsroot=uberbaum&r1=1.325&r2=1.326
http://sourceware.org/cgi-bin/cvsweb.cgi/winsup/cygwin/sync.h.diff?cvsroot=uberbaum&r1=1.40&r2=1.41


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]