summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 11:03:51 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-24 11:03:51 +0000
commitff9d9088329fc8270d1d9b89faf9187c33a854ac (patch)
tree83ba84ac1123313569f6a9613aef7bb8e0757585 /signal.c
parentf6fbdf261e30763a6eb23ede963d555f16806b15 (diff)
* include/ruby/ruby.h (rb_bug_errno): declared.
* include/ruby/intern.h (rb_strerrno): declaration removed. * error.c (rb_strerrno): make it static. return NULL for unknown errors. (rb_bug_errno): defined. * thread_pthread.c: use rb_bug_errno. * signal.c (ruby_signal): use rb_bug_errno. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25904 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index a2fce05d0e..43ed80b85b 100644
--- a/signal.c
+++ b/signal.c
@@ -487,7 +487,7 @@ ruby_signal(int signum, sighandler_t handler)
#endif
if (sigaction(signum, &sigact, &old) < 0) {
if (errno != 0 && errno != EINVAL) {
- rb_bug("sigaction error.\n");
+ rb_bug_errno("sigaction", errno);
}
}
return old.sa_handler;