aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>1999-03-16 00:16:43 +0000
committerBill Nottingham <notting@redhat.com>1999-03-16 00:16:43 +0000
commit889b8a4e8ea25c9530198ef1015c902acfed02dd (patch)
treeed5f2929a73bccc6d0fcc79f79d3c2ed0c5a3585
parent5ddc710826205c6dfef5eef0e1f6ce4cea54e6ce (diff)
downloadinitscripts-889b8a4e8ea25c9530198ef1015c902acfed02dd.tar
initscripts-889b8a4e8ea25c9530198ef1015c902acfed02dd.tar.gz
initscripts-889b8a4e8ea25c9530198ef1015c902acfed02dd.tar.bz2
initscripts-889b8a4e8ea25c9530198ef1015c902acfed02dd.tar.xz
initscripts-889b8a4e8ea25c9530198ef1015c902acfed02dd.zip
fix for CHATPID (bug #1343)
-rwxr-xr-xsysconfig/network-scripts/ifdown-ppp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysconfig/network-scripts/ifdown-ppp b/sysconfig/network-scripts/ifdown-ppp
index 7fa0cf5f..97cd04bc 100755
--- a/sysconfig/network-scripts/ifdown-ppp
+++ b/sysconfig/network-scripts/ifdown-ppp
@@ -30,7 +30,7 @@ fi
# pppd might have chat as a child; remember chat's pid to kill after pppd.
# (After, not before, so that pppd doesn't just restart it).
-CHATPID=`ps axl | awk '$4 ~ $PID {print $3}' 2>/dev/null`
+CHATPID=`ps axl | awk '$4 ~ /^'"$PID"'$/ {print $3}' 2>/dev/null`
kill $PID > /dev/null 2>&1
[ -n "$CHATPID" ] && kill $CHATPID > /dev/null 2>&1