aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-16 16:49:39 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-16 16:49:39 +0000
commitfbdd08b8c2c2a82d95ecb07673d429335d7af3c2 (patch)
tree53acf41c0e85ea3c51eaf18b448d5cc2ac61f0c0 /cont.c
parenta66a9fbb10608bc81fb466d1ad57805ce1134b7e (diff)
downloadruby-fbdd08b8c2c2a82d95ecb07673d429335d7af3c2.tar.gz
* thread_pthread.c (rb_thread_create_timer_thread): Show error
message instead of error number. * cont.c (fiber_machine_stack_alloc): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cont.c b/cont.c
index 22eabb6451..fa9e91ee64 100644
--- a/cont.c
+++ b/cont.c
@@ -625,7 +625,7 @@ fiber_machine_stack_alloc(size_t size)
errno = 0;
ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, FIBER_STACK_FLAGS, -1, 0);
if (ptr == MAP_FAILED) {
- rb_raise(rb_eFiberError, "can't alloc machine stack to fiber errno: %d", errno);
+ rb_raise(rb_eFiberError, "can't alloc machine stack to fiber: %s", strerror(errno));
}
/* guard page setup */