Skip to content

Commit cb464a9

Browse files
committed
pkill bandwhich at exit
1 parent 2fc0f71 commit cb464a9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/eltrafico_main/gui.rs

+6
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ fn build_ui(application: &gtk::Application) {
8585
if !pid.is_empty() {
8686
run!("pkexec pkill nethogs").expect("Error stopping nethogs");
8787
}
88+
// stop bandwhich
89+
let pid = String::from_utf8(run!("pidof bandwhich").unwrap().stdout).unwrap();
90+
if !pid.is_empty() {
91+
run!("pkexec pkill bandwhich").expect("Error stopping bandwhich");
92+
}
93+
8894
// stop tc thread
8995
// tc will send a STOP msg back to the main thread so it can exit
9096
writeln!(stdin_c.borrow_mut().as_mut().unwrap(), "{}", Message::Stop)

0 commit comments

Comments
 (0)