summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorThomas Bächler <thomas@archlinux.org>2010-02-15 23:42:34 +0100
committerThomas Bächler <thomas@archlinux.org>2010-02-15 23:42:34 +0100
commitc83d5eb8c694ac266b3055c38254e751e8917e8e (patch)
treec609de156c6d9ff320389e0a02ea66cf82bf6399 /init
parent72b8a02e874dde34c1a4d0a2c393bc4f69eeba7c (diff)
downloadmkinitcpio-c83d5eb8c694ac266b3055c38254e751e8917e8e.tar.gz
mkinitcpio-c83d5eb8c694ac266b3055c38254e751e8917e8e.tar.xz
Do not kill -9 udevd, instead kill -15 and wait for all processes to terminate before continuing
Diffstat (limited to 'init')
-rw-r--r--init6
1 files changed, 4 insertions, 2 deletions
diff --git a/init b/init
index 180ce84..f3c4e84 100644
--- a/init
+++ b/init
@@ -203,8 +203,10 @@ udevpid=$(/bin/pidof udevd)
if [ -n "${udevpid}" ]; then
# Settle pending uevents, then kill udev
/sbin/udevadm settle
- /bin/kill -9 ${udevpid} > /dev/null 2>&1
- /bin/sleep 0.01
+ /bin/kill ${udevpid} > /dev/null 2>&1
+ while /bin/pidof udevd >/dev/null; do
+ sleep 0.1
+ done
fi
umount /proc