Yes. Not that I really understand ;) But Eric also suggested to use
is_container_init().
Yes. I though about that too. But, unlike ->exit_state, signal->live
is not protected by tasklist, please see below.
Ah, good point. I didn't realize this when I was thinking about using
signal->live.
So perhaps it's:
I am hopeless, I can't understand orphaned pgrps.
But still. Let's suppose that pgrp should be considered as orphaned when
2 tasks A and B exit. They both exit at the same time and decrement ->live
down to zero. Now, they both can send SIGHUP to the stopped tasks.
No?
That said. Even if I am right, I agree that the signal->live check is
better. I like very much the possibility to kill the ugly "ignored_task".
Yes sure. Looking at the code I was surprised why we don't do that.
Oleg.
--