diff options
author | Thomas Bächler <thomas@archlinux.org> | 2010-02-15 23:42:34 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2010-02-15 23:42:34 +0100 |
commit | c83d5eb8c694ac266b3055c38254e751e8917e8e (patch) | |
tree | c609de156c6d9ff320389e0a02ea66cf82bf6399 /init | |
parent | 72b8a02e874dde34c1a4d0a2c393bc4f69eeba7c (diff) | |
download | mkinitcpio-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-- | init | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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 |