diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-16 16:49:39 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-11-16 16:49:39 +0000 |
commit | fbdd08b8c2c2a82d95ecb07673d429335d7af3c2 (patch) | |
tree | 53acf41c0e85ea3c51eaf18b448d5cc2ac61f0c0 /cont.c | |
parent | a66a9fbb10608bc81fb466d1ad57805ce1134b7e (diff) |
* 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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |