[Devel] [PATCH] Use task_pgrp() in solaris procids

sukadev at us.ibm.com sukadev at us.ibm.com
Thu Feb 22 15:35:30 PST 2007


From: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Subject: [PATCH] Use task_pgrp() in solaris procids

Use task_pgrp() in solaris procids code.

Signed-off-by: Sukadev Bhattiprolu <sukadev at us.ibm.com>
Cc: Cedric Le Goater <clg at fr.ibm.com>
Cc: Dave Hansen <haveblue at us.ibm.com>
Cc: Serge Hallyn <serue at us.ibm.com>
Cc: containers at lists.osdl.org
---
 arch/sparc64/solaris/misc.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: lx26-20-mm1/arch/sparc64/solaris/misc.c
===================================================================
--- lx26-20-mm1.orig/arch/sparc64/solaris/misc.c	2007-02-04 10:44:54.000000000 -0800
+++ lx26-20-mm1/arch/sparc64/solaris/misc.c	2007-02-16 15:47:02.000000000 -0800
@@ -413,7 +413,7 @@ asmlinkage int solaris_procids(int cmd, 
 	
 	switch (cmd) {
 	case 0: /* getpgrp */
-		return process_group(current);
+		return pid_nr(task_pgrp(current));
 	case 1: /* setpgrp */
 		{
 			int (*sys_setpgid)(pid_t,pid_t) =
@@ -424,7 +424,7 @@ asmlinkage int solaris_procids(int cmd, 
 			ret = sys_setpgid(0, 0);
 			if (ret) return ret;
 			proc_clear_tty(current);
-			return process_group(current);
+			return pid_nr(task_pgrp(current));
 		}
 	case 2: /* getsid */
 		{
_______________________________________________
Containers mailing list
Containers at lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers




More information about the Devel mailing list