Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 04/18/2001 04:31:42
Module Name:	basesrc
Committed By:	lukem
Date:		Wed Apr 18 01:31:42 UTC 2001

Modified Files:
	basesrc/etc: rc.subr

Log Message:
* provide wait_for_pids(), which spins until all the given pids don't exist
* run_rc_command():
	- add support for "poll", which by default, uses wait_for_pids() on
	  the list of matching processes
	- in the "restart" case, call "poll" between "stop" and "start"

this fixes the situation where certain services (e.g, amd, squid) would
take a bit longer to shutdown after receiving the kill signal to shutdown,
and "/etc/rc.d/foo restart" would fail in the `start' phase.


To generate a diff of this commit:
cvs rdiff -r1.32 -r1.33 basesrc/etc/rc.subr

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.