Merge "Report correct errno on clone failure"

This commit is contained in:
Dimitry Ivanov 2017-08-16 11:22:26 +00:00 committed by Gerrit Code Review
commit b2688f4a2a
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ int pthread_create(pthread_t* thread_out, pthread_attr_t const* attr,
munmap(thread->attr.stack_base, thread->mmap_size);
}
async_safe_format_log(ANDROID_LOG_WARN, "libc", "pthread_create failed: clone failed: %s",
strerror(errno));
strerror(clone_errno));
return clone_errno;
}