Re: [Devel] [RFC][PATCH 04/16] Use pid_to_nr() in process info functions

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

 



> ===================================================================
> --- lx26-21-mm2.orig/kernel/timer.c	2007-05-22 16:58:38.000000000 -0700
> +++ lx26-21-mm2/kernel/timer.c	2007-05-22 16:59:44.000000000 -0700
> @@ -945,7 +945,7 @@ asmlinkage long sys_getppid(void)
>  	int pid;
>  
>  	rcu_read_lock();
> -	pid = rcu_dereference(current->real_parent)->tgid;
> +	pid = pid_to_nr(task_parent_tgid(current));

This breaks fsys_getppid() call in ia64...

>  	rcu_read_unlock();
>  
>  	return pid;
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.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