Reputation: 3904
When a particular thread which is not main ends, I would like the parent process to end. How can i implement this?
Thanks
Upvotes: 0
Views: 60
Reputation: 182774
Call _exit
in that thread (instead of return) and the whole process will die.
Upvotes: 2