From 511da1a9aa91ffa6004adb7e0a6d1430ec6a4657 Mon Sep 17 00:00:00 2001 From: Jeff Garzik Date: Wed, 31 Jul 2002 03:17:02 -0400 Subject: alpha pid-reporting POSIX comformance bug fix: 2.4 kernels were changed to support POSIX thread groups, such that, sys_getpid() now returns $task->tgid, the thread group id. Since alpha implements its own getpid syscall, it missed this change, which is now included here. --- arch/alpha/kernel/osf_sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/osf_sys.c b/arch/alpha/kernel/osf_sys.c index dd9af1ed207a..9dd48b15441c 100644 --- a/arch/alpha/kernel/osf_sys.c +++ b/arch/alpha/kernel/osf_sys.c @@ -221,8 +221,8 @@ asmlinkage unsigned long sys_getxpid(int a0, int a1, int a2, int a3, int a4, * isn't actually going to matter, as if the parent happens * to change we can happily return either of the pids. */ - (®s)->r20 = tsk->real_parent->pid; - return tsk->pid; + (®s)->r20 = tsk->real_parent->tgid; + return tsk->tgid; } asmlinkage unsigned long osf_mmap(unsigned long addr, unsigned long len, -- cgit v1.2.3