From 6b607921355deb6bd7e99aadedbb29856571b4c8 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 13 Sep 2009 09:51:04 +0000 Subject: * 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 --- signal.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'signal.c') 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) * produces: * * Ouch! + * + * If _signal_ is an integer but wrong for signal, + * Errno::EINVAL or +RangeError+ will be raised. + * Otherwise unless _signal_ is a +String+ or a +Symbol+, and a known + * sinal name, +ArgumentError+ will be raised. + * + * Also, Errno::ESRCH or +RangeError+ for invalid _pid_, + * Errno::EPERM when failed because of no privilege, + * will be raised. In these cases, signals may have been sent to + * preceding processes. */ VALUE -- cgit v1.2.3