Skip to contentSkip to conversation

pid: Fix solaris_procids

PATCH New Eric W. Biederman 1 participant 1 message Dec 6, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pid: Fix solaris_procids

Use task_pgrp_vnr not task_pgrp_nr so we return the process id the processes pid namespace and not in the initial pid namespace.

---
 arch/sparc64/solaris/misc.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
arch/sparc64/solaris/misc.c +2 -2
index c86cb30..d3e48e9 100644
@@ -415,7 +415,7 @@ asmlinkage int solaris_procids(int cmd, s32 pid, s32 pgid)
 	
 	switch (cmd) {
 	case 0: /* getpgrp */
-		return task_pgrp_nr(current);
+		return task_pgrp_vnr(current);
 	case 1: /* setpgrp */
 		{
 			int (*sys_setpgid)(pid_t,pid_t) =
@@ -426,7 +426,7 @@ asmlinkage int solaris_procids(int cmd, s32 pid, s32 pgid)
 			ret = sys_setpgid(0, 0);
 			if (ret) return ret;
 			proc_clear_tty(current);
-			return task_pgrp_nr(current);
+			return task_pgrp_vnr(current);
 		}
 	case 2: /* getsid */
 		{
Signature · 1 line
1.5.3.rc6.17.g1911