Skip to content

Commit

Permalink
Abort on failure to allocate an internal thread.
Browse files Browse the repository at this point in the history
  • Loading branch information
brixen committed Apr 25, 2015
1 parent b57399f commit 6ce75ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vm/internal_threads.cpp
Expand Up @@ -76,7 +76,8 @@ namespace rubinius {

if(int error = pthread_create(&vm_->os_thread(), &attrs,
InternalThread::run, (void*)this)) {
logger::error("%s: %s: create thread failed", strerror(error), name_.c_str());
logger::fatal("%s: %s: create thread failed", strerror(error), name_.c_str());
::abort();
}
}

Expand Down

0 comments on commit 6ce75ef

Please sign in to comment.