OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] vt: Make vt_pid a struct pid (making it pid wrap around safe).
Re: [PATCH] vt: Make vt_pid a struct pid (making it pid wrap around safe). [message #16673 is a reply to message #16653] Mon, 11 September 2006 17:24 Go to previous message
Dave Hansen is currently offline  Dave Hansen
Messages: 240
Registered: October 2005
Senior Member
On Sun, 2006-09-10 at 06:41 -0600, Eric W. Biederman wrote:
> 
> -               vc->vt_pid = current->pid;
> +               put_pid(xchg(&vc->vt_pid, get_pid(task_pid(current)))); 

Would it make any sense to have a get_current_pid()?  It might reduce
the horribly confusing number of parenthesis there.

-- Dave

_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: [RFC][PATCH 0/2] user namespace [try #2]
Next Topic: [Fwd: [hg:v4l-dvb] tvaudio: Replaced kernel_thread() with kthread_run()]
Goto Forum:
  


Current Time: Mon Oct 27 15:47:08 GMT 2025

Total time taken to generate the page: 0.51026 seconds