Skip to content

Commit

Permalink
Upgrade pgrep options
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmussen-untangle authored Jan 26, 2022
1 parent f9b33a8 commit 2552de1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func SendSignal(executable string, signal syscall.Signal) error {

logger.Debug("Sending %s to %s\n", signal, executable)

pidStr, err := exec.Command("pgrep", executable).CombinedOutput()
pidStr, err := exec.Command("pgrep", "-of", executable).CombinedOutput()
if err != nil {
logger.Err("Failure to get %s pid: %s\n", executable, err.Error())
return err
Expand Down

0 comments on commit 2552de1

Please sign in to comment.