From d6fa3e10a0769d3ca113b6539188da426a66d686 Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Fri, 6 Apr 2001 18:02:46 +0000 Subject: attempt to avoid netreport killing too many random processes (#34933) --- sysconfig/network-scripts/network-functions | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sysconfig/network-scripts') diff --git a/sysconfig/network-scripts/network-functions b/sysconfig/network-scripts/network-functions index 1a43ffaf..cd1a4b49 100644 --- a/sysconfig/network-scripts/network-functions +++ b/sysconfig/network-scripts/network-functions @@ -36,9 +36,11 @@ do_netreport () # Notify programs that have requested notification ( cd /var/run/netreport || exit for i in * ; do - [ -f $i ] && \ - kill -SIGIO $i >/dev/null 2>&1 || \ - rm -f $i >/dev/null 2>&1 + if [ -f $i ]; then + OWNER=`ls -l $i | awk '{ print $3 }'` + su $OWNER -c "kill -SIGIO $i >/dev/null 2>&1" > /dev/null 2>&1 || \ + rm -f $i >/dev/null 2>&1 + fi done ) } -- cgit v1.2.1