diff options
| author | Jeff Garzik <jgarzik@mandrakesoft.com> | 2002-07-31 03:17:02 -0400 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@mandrakesoft.com> | 2002-07-31 03:17:02 -0400 |
| commit | 511da1a9aa91ffa6004adb7e0a6d1430ec6a4657 (patch) | |
| tree | 9a3f48826aec331ba9d393c7caf2621a1202b65a | |
| parent | 9fb720106e1e94ded2fb229512c0349a1aba7b51 (diff) | |
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.
| -rw-r--r-- | arch/alpha/kernel/osf_sys.c | 4 |
1 files 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, |
