ALT Linux Bugzilla
– Attachment 3437 Details for
Bug 19582
[PATCH] Не всегда дожидается смерти dhcpcd
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
dhcp_client_stop.patch
dhcp_client_stop.patch (text/plain), 777 bytes, created by
Mikhail Efremov
on 2009-04-11 15:14:16 MSD
(
hide
)
Description:
dhcp_client_stop.patch
Filename:
MIME Type:
Creator:
Mikhail Efremov
Created:
2009-04-11 15:14:16 MSD
Size:
777 bytes
patch
obsolete
>diff --git a/etcnet/etc/net/scripts/functions b/etcnet/etc/net/scripts/functions >index 7409bd8..8387f67 100644 >--- a/etcnet/etc/net/scripts/functions >+++ b/etcnet/etc/net/scripts/functions >@@ -507,9 +507,13 @@ stop_dhcp_client() > ;; > esac > if [ -s $PIDFILE ]; then >- kill -SIGHUP `cat $PIDFILE` >- # There probably should be a delay/wait loop here, dhcpcd doesn't die fast. >- sleep ${DHCP_GRACE_TIME:-0} >+ local pid=`cat $PIDFILE` >+ local i=0 >+ kill -SIGHUP $pid >+ while [ "$i" -lt "${DHCP_GRACE_TIME:-0}" ] && kill -0 $pid 2>/dev/null; do >+ sleep 1 >+ i=$(($i + 1)) >+ done > # dhcpcd will bring down the interface when stopping. To keep etcnet logics > # to work (running shutdown scripts for example) we should bring it up again > $IP link set dev $NAME up
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 19582
: 3437