summaryrefslogtreecommitdiffstats
path: root/bin/net_applet
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2009-09-29 14:03:38 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2009-09-29 14:03:38 +0000
commit3e31439459236bfe6d4d7c446bdce4612c5a4883 (patch)
tree3951053cb5202c9d9fdc099b40eb92afc9f7fbb0 /bin/net_applet
parentf8072df057cd2dd07e568db2542667c7f23c47e1 (diff)
downloaddrakx-net-3e31439459236bfe6d4d7c446bdce4612c5a4883.tar
drakx-net-3e31439459236bfe6d4d7c446bdce4612c5a4883.tar.gz
drakx-net-3e31439459236bfe6d4d7c446bdce4612c5a4883.tar.bz2
drakx-net-3e31439459236bfe6d4d7c446bdce4612c5a4883.tar.xz
drakx-net-3e31439459236bfe6d4d7c446bdce4612c5a4883.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/net_applet')
-rwxr-xr-xbin/net_applet4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/net_applet b/bin/net_applet
index a81b115..fef54eb 100755
--- a/bin/net_applet
+++ b/bin/net_applet
@@ -240,6 +240,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;