]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
pid: fix solaris_procids
authorEric W. Biederman <ebiederm@xmission.com>
Fri, 8 Feb 2008 12:19:17 +0000 (04:19 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:28 +0000 (09:22 -0800)
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.

Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Cc: Pavel Emelyanov <xemul@openvz.org>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Cc: "David S. Miller" <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/sparc64/solaris/misc.c

index c86cb3091a8ea8f28201f9afc66b718f230a107a..d3e48e9701bf33b35047cda9ebda3eb9e5546316 100644 (file)
@@ -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 */
                {