Commit Graph

2 Commits

Author SHA1 Message Date
Rob Landley
c8400d7f82 Fix same spurious test failures that were affecting killall,
and silence "killed" messages from the shell by forking in a subshell.
2019-10-11 15:40:08 -05:00
Elliott Hughes
a7b8b772de pidof: fix default behavior, add -x.
Before this patch, we're effectively doing `pidof -x` all the time. This
patch changes names_to_pid() to allow us to say whether or not we want to
include scripts, and adjusts the callers appropriately.

Also add tests for `pidof` versus `pidof -x` which pass after this
patch, without regressing the existing killall tests.
2019-07-12 13:18:11 -05:00