network: kill -9 dhclient, if normal kill does not succeed

https://bugzilla.redhat.com/show_bug.cgi?id=583348
master
Harald Hoyer 2010-09-23 16:23:33 +02:00
parent 1b29b0f7cf
commit a8a949d9e5
1 changed files with 8 additions and 0 deletions

View File

@ -7,3 +7,11 @@ for f in /tmp/dhclient.*.pid; do
read PID < $f;
kill $PID;
done

sleep 0.1

for f in /tmp/dhclient.*.pid; do
[ -e $f ] || continue
read PID < $f;
kill -9 $PID;
done