]> granicus.if.org Git - procps-ng/commit
skill: fix command line with signal
authorCraig Small <csmall@enc.com.au>
Sat, 24 Jan 2015 06:11:11 +0000 (17:11 +1100)
committerCraig Small <csmall@enc.com.au>
Sat, 24 Jan 2015 06:11:11 +0000 (17:11 +1100)
commit7610b3128e6ac40a9e14d9238584e79ece06bc96
tree0218fc6b5faa87a975bc73c1622c9ff3d8568e95
parentfc7cb8dd4cd91da3d2df35b8863247674e4fd1ed
skill: fix command line with signal

If skill was used with a signal number then it would intepret
the command line with last option interpreted twice. This often
confused the program so it just would end up killing nothing.
So this would work:
skill -t pts/0
This would not:
skill -9 -t pts/0

The kill path (in the same file) uses the same logic that has
been introduced here.

References: https://www.freelists.org/post/procps/skill-command-does-not-work-in-debian-7-releases

Signed-off-by: Craig Small <csmall@enc.com.au>
NEWS
skill.c