Package: procps
Version: 1:3.3.3-3
Severity: normal
This works as documented by "man kill", using the bash kill built-in:
~$ ( yes | ts > foo ) &
[3] 8950
~$ echo $!
8950
~$ kill -s 15 -$!
~$
And here is what /bin/kill does (which, of course, is actually what "man
kill" purports to describe):
~$ ( yes | ts > foo ) &
[4] 9082
~$ ps x | fgrep yes | fgrep -v fgrep
9083 pts/0 S 0:00 yes
~$ /bin/kill -s 15 -$!
/bin/kill: invalid option -- '9'
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
~$ ps x | fgrep yes | fgrep -v fgrep
9083 pts/0 S 0:00 yes
-- System Information:
Debian Release: 7.8
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.10.65.5 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages procps depends on:
ii initscripts 2.88dsf-41+deb7u1
ii libc6 2.13-38+deb7u6
ii libncurses5 5.9-10
ii libncursesw5 5.9-10
ii libprocps0 1:3.3.3-3
ii libtinfo5 5.9-10
ii lsb-base 4.1+Debian8+deb7u1
Versions of packages procps recommends:
ii psmisc 22.19-1+deb7u1
procps suggests no packages.
-- Configuration Files:
/etc/sysctl.conf changed [not included]
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]