OpenVZ Forum


Home » Mailing lists » Devel » Re: [PATCH] Use same_thread_group() in signalfd.c
Re: [PATCH] Use same_thread_group() in signalfd.c [message #19804] Wed, 29 August 2007 21:18
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Pavel Emelianov [xemul@openvz.org] wrote:
| This is a lost hunk of previous patch that isolated the
| explicit usage of task->tgid in some places. The signalfd
| code uses the tsk->tgid comparison.
| 
| Signed-off-by: Pavel Emelyanov <xemul@openvz.org>

Acked-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>

| 
| ---
| 
| diff --git a/fs/signalfd.c b/fs/signalfd.c
| index a8e293d..5bfd2c5 100644
| --- a/fs/signalfd.c
| +++ b/fs/signalfd.c
| @@ -64,7 +64,7 @@ static int signalfd_lock(struct signalfd
| 		return 0;
| 	}
| 
| -	if (lk->tsk->tgid == current->tgid)
| +	if (same_thread_group(lk->tsk, current->tgid))
| 		lk->tsk = current;
| 
| 	return 1;
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Previous Topic: Re: [PATCH] Send quota messages via netlink
Next Topic: Re: [PATCH] Use task_pid_nr() in ip_vs_sync.c
Goto Forum:
  


Current Time: Sun Aug 17 23:08:03 GMT 2025

Total time taken to generate the page: 0.34977 seconds