commit | fd81e7146b2e9253aa2ab131d970b9e300f1f97e | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Mon Jan 06 12:46:02 2014 -0800 |
committer | Elliott Hughes <enh@google.com> | Mon Jan 06 12:46:02 2014 -0800 |
tree | e1fd86baa02ee930203a8e669c7cab476da41c5c | |
parent | 21538d9410d3d04cc15f08a3a25b5f2501a70f9e [diff] |
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