]> git.ipfire.org Git - thirdparty/util-linux.git/commit
kill: return 64 on partial success
authorKarel Zak <kzak@redhat.com>
Mon, 7 Apr 2014 09:07:00 +0000 (11:07 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 7 Apr 2014 09:07:00 +0000 (11:07 +0200)
commita01f4d4323d5ca17c4d9773cbb7abd22d701e276
tree0e70e590cc350ce7af4c220a1b602ebf8db6f1c4
parentd1f7edbe82b5cc1ce250d0743b93315ec4b4c9ef
kill: return 64 on partial success

Return 64 (aka SOME_OK) when more than process specified and the
operation success only for subset of the processes.

 # kill -s 0 firefox mutt xxx; echo $?
 kill: cannot find process "xxx"
 64

We already use this concept for chcpu(8) or mount(8).

Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/kill.1
misc-utils/kill.c