try harder to kill udev
authorHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2009 09:42:05 +0000 (11:42 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 2 Jul 2009 09:47:27 +0000 (11:47 +0200)
modules.d/99base/init

index 2acf274..868ca19 100755 (executable)
@@ -115,7 +115,14 @@ done
 }
 
 getarg rdbreak && emergency_shell
-kill $(pidof udevd)
+
+HARD=""
+while pidof udevd >/dev/null 2>&1; do 
+    for pid in $(pidof udevd); do
+       kill $HARD $pid >/dev/null 2>&1
+    done
+    HARD="-9"
+done
 
 # Clean up the environment
 for i in $(export -p); do