Re: [PATCH 2/2] Explicitly set pgid and sid of init

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dave Hansen <hansendc@xxxxxxxxxx> writes:

> On Thu, 2007-02-22 at 15:24 -0800, sukadev@xxxxxxxxxx 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@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux