Mageia Bugzilla – Attachment 4206 Details for
Bug 157
drakx-net should offer to install net_monitor when the user activates the "Monitor" function
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Install net_monitor package on demand
net_applet.patch (text/plain), 693 bytes, created by
Derek Jennings
on 2013-07-14 09:42:21 CEST
(
hide
)
Description:
Install net_monitor package on demand
Filename:
MIME Type:
Creator:
Derek Jennings
Created:
2013-07-14 09:42:21 CEST
Size:
693 bytes
patch
obsolete
>--- bin/net_applet 2013-07-14 08:15:40.000000000 +0100 >+++ /usr/bin/net_applet 2013-07-14 08:31:30.575627161 +0100 >@@ -15,6 +15,7 @@ > use network::connection::ethernet; > use network::vpn; > use run_program; >+use do_pkgs; > use mygtk2 qw(gtknew gtkset); > use dbus_object; > use network::monitor; >@@ -315,6 +316,10 @@ > return getAutoStart(); > } > sub run_net_monitor() { >+ my $in = 'do_pkgs'; >+ # stop reaping child processes or else gurpmi segfaults >+ local $SIG{CHLD} = "DEFAULT"; >+ $in->do_pkgs->install('net_monitor'); > run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $current_interface) unless is_running('net_monitor'); > } > sub run_netcenter() {
--- bin/net_applet 2013-07-14 08:15:40.000000000 +0100 +++ /usr/bin/net_applet 2013-07-14 08:31:30.575627161 +0100 @@ -15,6 +15,7 @@ use network::connection::ethernet; use network::vpn; use run_program; +use do_pkgs; use mygtk2 qw(gtknew gtkset); use dbus_object; use network::monitor; @@ -315,6 +316,10 @@ return getAutoStart(); } sub run_net_monitor() { + my $in = 'do_pkgs'; + # stop reaping child processes or else gurpmi segfaults + local $SIG{CHLD} = "DEFAULT"; + $in->do_pkgs->install('net_monitor'); run_program::raw({ detach => 1 }, '/usr/bin/net_monitor', '--defaultintf', $current_interface) unless is_running('net_monitor'); } sub run_netcenter() {
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 157
:
4206
|
4207