From 7b5a719fd8d07cff61024d3f2d3cc7792850019e Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 9 Nov 2009 23:20:40 +0000 Subject: clearing pending ifw notifications in net_applet (#48493). This can be done manually too, by sending -SIGUSR1 to net_applet. --- bin/net_applet | 4 ++++ lib/network/drakfirewall.pm | 3 +++ 2 files changed, 7 insertions(+) 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; diff --git a/lib/network/drakfirewall.pm b/lib/network/drakfirewall.pm index 4b334a0..8361124 100644 --- a/lib/network/drakfirewall.pm +++ b/lib/network/drakfirewall.pm @@ -355,5 +355,8 @@ sub main { } } + # clearing pending ifw notifications in net_applet + system('killall -s SIGUSR1 net_applet'); + ($disabled, $ports); } -- cgit v1.2.1