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 - 9:48 am

On 03/04, Roland McGrath wrote:

Sorry! I was unclear.

Multiple reasons. Just for example,

	1:~$ strace -o /dev/null perl -e 'kill SIGSTOP,$$; for (;;) {}' &
	[1] 6714
	1:~$ kill -9 $!
	[1]+  Killed                  strace -o /dev/null perl -e 'kill SIGSTOP,$$; for (;;) {}'
	1:~$ grep State: /proc/`pidof perl`/status
	State:  R (running)

but its signal->flags = SIGNAL_STOP_STOPPED.

Please note that unless SIGCONT comes it will exit() with SIGNAL_STOP_STOPPED
set too, this complicates fixing do_wait(WSTOPPED). We can shadow this problem
though, do_wait() can first check TASK_ZOMBIE, and only then SIGNAL_STOP_STOPPED.
I am going to try to cook some patches soon.


Yes. Somehow the conception of orphaned pgrp doesn't fit in my brain, but I'd
like to at least try to think about this...

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)