aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/network-functions
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts/network-functions')
-rw-r--r--sysconfig/network-scripts/network-functions8
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
)
}