commit | 6de60874aa4b2525df6acf93dbd00c048b464799 | [log] [tgz] |
---|---|---|
author | dimitry <dimitry@google.com> | Mon Aug 14 14:42:19 2017 +0200 |
committer | dimitry <dimitry@google.com> | Mon Aug 14 14:42:19 2017 +0200 |
tree | bb85cea41de420d23b3b44bf56ea6e37147d0838 | |
parent | 30438e4cea83628bcacbedff37a35398bb8b40e7 [diff] [blame] |
Report correct errno on clone failure Test: make Change-Id: Id0af3678627c06167a6d434d8616c4a304e1fbc0
diff --git a/libc/bionic/pthread_create.cpp b/libc/bionic/pthread_create.cpp index 9197aa3..9be86f1 100644 --- a/libc/bionic/pthread_create.cpp +++ b/libc/bionic/pthread_create.cpp
@@ -278,7 +278,7 @@ 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; }