summaryrefslogtreecommitdiffstats
path: root/misc-utils/kill.c
diff options
context:
space:
mode:
authorSami Kerola2014-03-09 18:45:35 +0100
committerSami Kerola2014-03-30 22:32:36 +0200
commitc5b057b3422504a671ee588fa66574ae876521f1 (patch)
tree78e608f14ddcea2b591bc01d159d745d69942cdc /misc-utils/kill.c
parentkill: make usage() not to return (diff)
downloadkernel-qcow2-util-linux-c5b057b3422504a671ee588fa66574ae876521f1.tar.gz
kernel-qcow2-util-linux-c5b057b3422504a671ee588fa66574ae876521f1.tar.xz
kernel-qcow2-util-linux-c5b057b3422504a671ee588fa66574ae876521f1.zip
kill: deprecat invocation as 'pid' command name
Enabling options by renaming command is both unexpected and undocumented. This magic is now deprecated and with remark of removal of this functionality in future. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'misc-utils/kill.c')
-rw-r--r--misc-utils/kill.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/misc-utils/kill.c b/misc-utils/kill.c
index 2fecda39e..c9c1bda1a 100644
--- a/misc-utils/kill.c
+++ b/misc-utils/kill.c
@@ -170,6 +170,8 @@ int main(int argc, char **argv)
numsig = SIGTERM;
do_pid = (!strcmp(program_invocation_short_name, "pid")); /* Yecch */
+ if (do_pid) /* FIXME: remove in March 2016. */
+ warnx(_("use of 'kill --pid' option as command name is deprecated"));
do_kill = 0;
check_all = 0;
/* Loop through the arguments. Actually, -a is the only option