OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 3/3] Signal semantics for pid namespaces
Re: [PATCH 3/3] Signal semantics for pid namespaces [message #19897 is a reply to message #19879] Mon, 03 September 2007 16:59 Go to previous messageGo to previous message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Oleg Nesterov [oleg@tv-sign.ru] wrote:
| On 08/31, sukadev@us.ibm.com wrote:
| >
| > @@ -48,7 +49,7 @@ static int sig_init_ignore(struct task_s
| >  	if (likely(!is_container_init(tsk->group_leader)))
| >  		return 0;
| >  
| > -	if (!in_interrupt())
| > +	if (is_current_in_ancestor_pid_ns(tsk) && !in_interrupt())
| >  		return 0;
| 
| We should return 1 in that case, afaics the logic is wrongly reversed.

Hmm. My unit tests worked as I thought they should :-)

return 1 implies we "ignore the signal" right ?

If the signal is from an ancestor namespace, and we are not in interrupt
context, we don't want to ignore the signal. no ?

| 
| Oleg.
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH 1/3] Signal semantics for /sbin/init
Next Topic: [PATCH 2/3] Pid ns helpers for signals
Goto Forum:
  


Current Time: Mon Sep 01 05:34:09 GMT 2025

Total time taken to generate the page: 0.05793 seconds