summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-11-09 23:20:40 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-11-09 23:20:40 +0000
commit7b5a719fd8d07cff61024d3f2d3cc7792850019e (patch)
tree7b0c930633152b5b0f0ae2f7ff123a8707744fa5 /bin
parentbffffd211c0b837c6994a0360d6424d7edb737b1 (diff)
downloaddrakx-net-7b5a719fd8d07cff61024d3f2d3cc7792850019e.tar
drakx-net-7b5a719fd8d07cff61024d3f2d3cc7792850019e.tar.gz
drakx-net-7b5a719fd8d07cff61024d3f2d3cc7792850019e.tar.bz2
drakx-net-7b5a719fd8d07cff61024d3f2d3cc7792850019e.tar.xz
drakx-net-7b5a719fd8d07cff61024d3f2d3cc7792850019e.zip
clearing pending ifw notifications in net_applet (#48493). This can be
done manually too, by sending -SIGUSR1 to net_applet.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/net_applet4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/net_applet b/bin/net_applet
index 31ba331..33fa44b 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -238,6 +238,10 @@ $SIG{HUP} = sub {
print "received SIGHUP, reloading network configuration\n";
checkNetworkForce();
};
+$SIG{USR1} = sub {
+ # clear all ifw notifications
+ my @packets = eval { $network::net_applet::ifw->get_reports };
+};
Gtk2->main;