summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 01:02:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-11 01:02:47 +0000
commita3656d4222509f0befa6d01f0ccd3f7a9442665b (patch)
tree167f2314265dfd7669ce11bb0543876194b57133 /signal.c
parentc6e9e4110e7878cdd13c4b92f79101a2b2e03c97 (diff)
signal.c: directly deliver non-handlable signals
* signal.c (rb_f_kill): directly deliver signals which cannot be handled, i.e., SIGKILL and SIGSTOP. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/signal.c b/signal.c
index 82c9125c90..05b21a9ad9 100644
--- a/signal.c
+++ b/signal.c
@@ -465,6 +465,12 @@ rb_f_kill(int argc, VALUE *argv)
#ifdef SIGBUS
case SIGBUS:
#endif
+#ifdef SIGKILL
+ case SIGKILL:
+#endif
+#ifdef SIGSTOP
+ case SIGSTOP:
+#endif
ruby_kill(pid, sig);
break;
default: