OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/2] Explicitly set pgid and sid of init
Re: [PATCH 2/2] Explicitly set pgid and sid of init [message #17521 is a reply to message #17520] Fri, 23 February 2007 06:17 Go to previous message
ebiederm is currently offline  ebiederm
Messages: 1354
Registered: February 2006
Senior Member
Dave Hansen <hansendc@us.ibm.com> writes:

> On Thu, 2007-02-22 at 15:24 -0800, sukadev@us.ibm.com wrote:
>> -       if (process_group(curr) != pgrp) {
>> +       if (pid_nr(task_pgrp(curr)) != pgrp) { 
>
> I wonder if there are enough of these cases to start doing:
>
> 	#define task_pgrp_nr(tsk)  pid_nr(task_pgrp(tsk))
> 	#define task_tgid_nr(tsk)  pid_nr(task_tgid(tsk))

There shouldn't be.  We should really fix the arguments of __set_special_pids
to be struct_pid *.  At which point this ugliness goes away.

Eric
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Previous Topic: Using libvzctl-0.0.2.so on C++ code
Next Topic: [PATCH] Use task_pgrp() and task_session in binfmt
Goto Forum:
  


Current Time: Mon Jul 21 12:54:32 GMT 2025

Total time taken to generate the page: 0.07344 seconds