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 #17520 is a reply to message #17505] Thu, 22 February 2007 23:38 Go to previous messageGo to previous message
Dave Hansen is currently offline  Dave Hansen
Messages: 240
Registered: October 2005
Senior Member
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))

etc...

-- Dave

_______________________________________________
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: Sat Aug 02 13:02:57 GMT 2025

Total time taken to generate the page: 0.95900 seconds