Commit cc1983a7 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am dcb3334c: Merge "Fix pthread_create error handling in ril harder."

* commit 'dcb3334c':
  Fix pthread_create error handling in ril harder.
parents 091ed337 dcb3334c
......@@ -3184,9 +3184,9 @@ RIL_startEventLoop(void) {
pthread_attr_init(&attr);
pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
int ret = pthread_create(&s_tid_dispatch, &attr, eventLoop, NULL);
if (ret < 0) {
RLOGE("Failed to create dispatch thread: %s", strerror(errno));
int result = pthread_create(&s_tid_dispatch, &attr, eventLoop, NULL);
if (result != 0) {
RLOGE("Failed to create dispatch thread: %s", strerror(result));
goto done;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment