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>
This commit is contained in:
parent
c840c5023c
commit
c5b057b342
|
@ -88,6 +88,11 @@ Specify that
|
|||
.B kill
|
||||
should only print the process id (pid) of the named processes, and not send any
|
||||
signals.
|
||||
.IP
|
||||
The \-\-pid option functionality is enabled when the command
|
||||
copied or linked to name
|
||||
.BR pid .
|
||||
This functionality is deprecated, and will not be removed in March 2016.
|
||||
.TP
|
||||
\fB\-q\fR, \fB\-\-queue\fR \fIsigval\fR
|
||||
Use
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue