Skip to content

Commit

Permalink
fix: killall to pkill for toggle pause
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Jun 15, 2024
1 parent 047a422 commit b8e7232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ fn main() -> Result<(), Box<dyn Error>> {

// Send pause signal
if cli.toggle_pause {
Command::new("killall")
.args(["-SIGUSR1", "push2talk"])
Command::new("pkill")
.args(["-SIGUSR1", "-f", "push2talk"])
.spawn()
.expect("Can't pause push2talk");

Expand Down

0 comments on commit b8e7232

Please sign in to comment.