Re: [PATCH 0/3] orphaned pgrp fixes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Oleg Nesterov
Date: Wednesday, March 5, 2008 - 10:11 am

On 03/04, Roland McGrath wrote:

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.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] orphaned pgrp fixes, Oleg Nesterov, (Sun Mar 2, 11:44 am)
Re: [PATCH 0/3] orphaned pgrp fixes, Roland McGrath, (Tue Mar 4, 5:26 am)
Re: [PATCH 0/3] orphaned pgrp fixes, Oleg Nesterov, (Tue Mar 4, 8:51 am)
Re: [PATCH 0/3] orphaned pgrp fixes, Roland McGrath, (Tue Mar 4, 6:11 pm)
Re: [PATCH 0/3] orphaned pgrp fixes, Oleg Nesterov, (Wed Mar 5, 9:48 am)
Re: [PATCH 0/3] orphaned pgrp fixes, Oleg Nesterov, (Wed Mar 5, 10:11 am)
Re: [PATCH 0/3] orphaned pgrp fixes, Eric W. Biederman, (Wed Mar 5, 6:14 pm)
Re: [PATCH 0/3] orphaned pgrp fixes, Oleg Nesterov, (Thu Mar 6, 6:52 pm)
Re: [PATCH 0/3] orphaned pgrp fixes, Roland McGrath, (Thu Mar 6, 8:53 pm)