Lipika Deka
Lipika Deka

Reputation: 3904

One thread ending the process

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

Answers (1)

cnicutar
cnicutar

Reputation: 182774

Call _exit in that thread (instead of return) and the whole process will die.

Upvotes: 2

Related Questions