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.
* 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,