Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jan 2009 10:31:46 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r187685 - head/etc
Message-ID:  <200901251031.n0PAVk9I013311@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sun Jan 25 10:31:45 2009
New Revision: 187685
URL: http://svn.freebsd.org/changeset/base/187685

Log:
  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

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
 fi
 
 # Insert other shutdown procedures here



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901251031.n0PAVk9I013311>