OSDN Git Service

Fix pthread_create error handling in ril harder.
authorElliott Hughes <enh@google.com>
Mon, 6 Jan 2014 20:46:02 +0000 (12:46 -0800)
committerElliott Hughes <enh@google.com>
Mon, 6 Jan 2014 20:46:02 +0000 (12:46 -0800)
commitfd81e7146b2e9253aa2ab131d970b9e300f1f97e
treee1fd86baa02ee930203a8e669c7cab476da41c5c
parent21538d9410d3d04cc15f08a3a25b5f2501a70f9e
Fix pthread_create error handling in ril harder.

The previous patch fixed the behavior _if_ something goes wrong...
...but didn't fix the check for whether something went wrong.
pthread_create isn't a regular Unix "return -1 and set errno" kind
of function; it returns 0 on success and an error number (without
setting errno) on failure.

Bug: https://code.google.com/p/android/issues/detail?id=64189
Change-Id: I335af890885d6a672d7bac746fdfea3ed3995360
libril/ril.cpp