mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Document acceptance of negative pid in Process.kill [ci skip]
Fixes [Bug #13501]
This commit is contained in:
parent
4b7d7d007f
commit
b1a2eddbfc
1 changed files with 3 additions and 2 deletions
5
signal.c
5
signal.c
|
@ -419,8 +419,9 @@ static void signal_enque(int sig);
|
||||||
* Process.kill(signal, pid, ...) -> integer
|
* Process.kill(signal, pid, ...) -> integer
|
||||||
*
|
*
|
||||||
* Sends the given signal to the specified process id(s) if _pid_ is positive.
|
* Sends the given signal to the specified process id(s) if _pid_ is positive.
|
||||||
* If _pid_ is zero _signal_ is sent to all processes whose group ID is equal
|
* If _pid_ is zero, _signal_ is sent to all processes whose group ID is equal
|
||||||
* to the group ID of the process. _signal_ may be an integer signal number or
|
* to the group ID of the process. If _pid_ is negative, results are dependent
|
||||||
|
* on the operating system. _signal_ may be an integer signal number or
|
||||||
* a POSIX signal name (either with or without a +SIG+ prefix). If _signal_ is
|
* a POSIX signal name (either with or without a +SIG+ prefix). If _signal_ is
|
||||||
* negative (or starts with a minus sign), kills process groups instead of
|
* negative (or starts with a minus sign), kills process groups instead of
|
||||||
* processes. Not all signals are available on all platforms.
|
* processes. Not all signals are available on all platforms.
|
||||||
|
|
Loading…
Add table
Reference in a new issue