diff options
author | Roman Kiryanov <rkir@google.com> | 2019-03-20 16:06:18 -0700 |
---|---|---|
committer | Roman Kiryanov <rkir@google.com> | 2019-03-20 16:35:32 -0700 |
commit | cc376ebdc57bcf8847cdfdf1c0c57a8e09092551 (patch) | |
tree | 80bd904abc37e8a232d0027f6cab1608d4eb155c | |
parent | 8a206a0e27ff20b7d0071c8050c605e7d8affc2b (diff) | |
download | platform_hardware_ril-cc376ebdc57bcf8847cdfdf1c0c57a8e09092551.tar.gz platform_hardware_ril-cc376ebdc57bcf8847cdfdf1c0c57a8e09092551.tar.bz2 platform_hardware_ril-cc376ebdc57bcf8847cdfdf1c0c57a8e09092551.zip |
Do not call rilc_thread_pool if there is no ril library
rilc_thread_pool crashes if RIL_register is never called
because RIL_register sets the threadpool which
rilc_thread_pool joins to.
Test: make
Bug: 117327079
Change-Id: If249561375748d42f1b8593ac9794fdfa1b76d18
Signed-off-by: Roman Kiryanov <rkir@google.com>
-rw-r--r-- | rild/rild.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/rild/rild.c b/rild/rild.c index c554a9fe..781db785 100644 --- a/rild/rild.c +++ b/rild/rild.c @@ -224,10 +224,9 @@ int main(int argc, char **argv) { RLOGD("RIL_register_socket completed"); -done: - rilc_thread_pool(); +done: RLOGD("RIL_Init starting sleep loop"); while (true) { sleep(UINT32_MAX); |