diff options
author | Bill Nottingham <notting@redhat.com> | 2001-04-06 18:02:46 +0000 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2001-04-06 18:02:46 +0000 |
commit | d6fa3e10a0769d3ca113b6539188da426a66d686 (patch) | |
tree | 5887644da8435c4afd96391353c96f7b9c8a8a68 /sysconfig/network-scripts | |
parent | 1e2108da40df47edf2e1d3a5e55758e4488f8c0d (diff) | |
download | initscripts-d6fa3e10a0769d3ca113b6539188da426a66d686.tar initscripts-d6fa3e10a0769d3ca113b6539188da426a66d686.tar.gz initscripts-d6fa3e10a0769d3ca113b6539188da426a66d686.tar.bz2 initscripts-d6fa3e10a0769d3ca113b6539188da426a66d686.tar.xz initscripts-d6fa3e10a0769d3ca113b6539188da426a66d686.zip |
attempt to avoid netreport killing too many random processes (#34933)
Diffstat (limited to 'sysconfig/network-scripts')
-rw-r--r-- | sysconfig/network-scripts/network-functions | 8 |
1 files changed, 5 insertions, 3 deletions
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 ) } |