summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-13 15:24:05 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-13 15:24:05 +0000
commitb1228caeff7791116a68a400607f55fc891a4b2a (patch)
treeab34ad2242810648dadc0a5c830710ff7c8bf785 /signal.c
parent3207af4cb841872176ad0ba5cc62f868b83ee769 (diff)
* signal.c (rb_f_kill):
Update documentation for Process.kill to reflect kill(2) Patch by Richo Healey git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/signal.c b/signal.c
index b76044c625..304b1e4f3f 100644
--- a/signal.c
+++ b/signal.c
@@ -304,11 +304,11 @@ ruby_default_signal(int sig)
* call-seq:
* Process.kill(signal, pid, ...) -> fixnum
*
- * Sends the given signal to the specified process id(s), or to the
- * current process if _pid_ is zero. _signal_ may be an
- * integer signal number or 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
+ * 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
+ * to the group ID of the process. _signal_ may be an integer signal number or
+ * 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
* processes. Not all signals are available on all platforms.
*
* pid = fork do