[Pkg-sysvinit-commits] r1435 - in sysvinit-upstream/trunk: doc src

Petter Reinholdtsen pere at alioth.debian.org
Sat Jul 11 07:23:34 UTC 2009


Author: pere
Date: 2009-07-11 07:23:33 +0000 (Sat, 11 Jul 2009)
New Revision: 1435

Modified:
   sysvinit-upstream/trunk/doc/Changelog
   sysvinit-upstream/trunk/src/killall5.c
Log:
Add usleep in killall5 after killing processes, to force the kernel to reschedule.  Patch from SuSe.

Modified: sysvinit-upstream/trunk/doc/Changelog
===================================================================
--- sysvinit-upstream/trunk/doc/Changelog	2009-07-11 06:56:56 UTC (rev 1434)
+++ sysvinit-upstream/trunk/doc/Changelog	2009-07-11 07:23:33 UTC (rev 1435)
@@ -51,6 +51,8 @@
     from Thomas Hood.
   * Change init to use setenv() instead of putenv, make sure the PATH
     value is usable on re-exec.  Patch from Thomas Hood.
+  * Add usleep in killall5 after killing processes, to force the kernel
+    to reschedule.  Patch from SuSe.
 
  -- Petter Reinholdtsen <pere at debian.org>  Fri, 30 Jul 2004 14:14:58 +0200
 

Modified: sysvinit-upstream/trunk/src/killall5.c
===================================================================
--- sysvinit-upstream/trunk/src/killall5.c	2009-07-11 06:56:56 UTC (rev 1434)
+++ sysvinit-upstream/trunk/src/killall5.c	2009-07-11 07:23:33 UTC (rev 1435)
@@ -644,5 +644,8 @@
 	/* Done. */
 	closelog();
 
+	/* Force the kernel to run the scheduler */
+	usleep(1);
+
 	return 0;
 }




More information about the Pkg-sysvinit-commits mailing list