Juniper / grpc-c

C implementation of gRPC layered on top of core library
BSD 3-Clause "New" or "Revised" License
220 stars 59 forks source link

Call 'gpr_thd_options_set_joinable(&toptions);'to make threads joinable #11

Open lifeng68 opened 7 years ago

lifeng68 commented 7 years ago

We should call the function gpr_thd_options_set_joinable(&toptions) to make the thread to be joinable, otherwise the threads were DETACHED by default. And the threads will be collected by OS, we could not call pthread_join to collect them. If we do that , there will be a core dump. Signed-off-by: Li Feng lifeng68@huawei.com