svn commit: r187685 - head/etc

Bjoern A. Zeeb bz at
Sun Jan 25 02:31:46 PST 2009

Author: bz
Date: Sun Jan 25 10:31:45 2009
New Revision: 187685

  Instead of killing the 'watchdog' subshell and leaving a sleep for
  rcshutdown_timeout (normally 30s) around re-parented to init, make
  sure both go away using pkill -P.
  While noone normally notices this for the system shutdown, it helps for
  cleanly shutting down trusted jails.
  Found without a killall in the base system, which in rc.d/jail normally
  ensures that all processes of a jail to be stopped will be killed.
  Reviewed by:	silence on current@
  MFC after:	4 weeks


Modified: head/etc/rc.shutdown
--- head/etc/rc.shutdown	Sun Jan 25 10:11:58 2009	(r187684)
+++ head/etc/rc.shutdown	Sun Jan 25 10:31:45 2009	(r187685)
@@ -98,7 +98,7 @@ done
 # Terminate the background watchdog timer (if it is running)
 if [ -n "$_rcshutdown_watchdog" ]; then
-	kill -TERM $_rcshutdown_watchdog >/dev/null 2>&1
+	pkill -TERM -P $_rcshutdown_watchdog >/dev/null 2>&1
 # Insert other shutdown procedures here

More information about the svn-src-head mailing list