summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 09:51:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-13 09:51:04 +0000
commit6b607921355deb6bd7e99aadedbb29856571b4c8 (patch)
tree39e013b3937e526d31d9682ffae27091b4d07851 /signal.c
parent231fdd86aebdda64101574614451db4fa7853633 (diff)
* signal.c (rb_f_kill): added rdoc about exceptions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index b1773bc4d5..27ff442bb6 100644
--- a/signal.c
+++ b/signal.c
@@ -325,6 +325,16 @@ ruby_default_signal(int sig)
* <em>produces:</em>
*
* Ouch!
+ *
+ * If _signal_ is an integer but wrong for signal,
+ * <code>Errno::EINVAL</code> or +RangeError+ will be raised.
+ * Otherwise unless _signal_ is a +String+ or a +Symbol+, and a known
+ * sinal name, +ArgumentError+ will be raised.
+ *
+ * Also, <code>Errno::ESRCH</code> or +RangeError+ for invalid _pid_,
+ * <code>Errno::EPERM</code> when failed because of no privilege,
+ * will be raised. In these cases, signals may have been sent to
+ * preceding processes.
*/
VALUE