--- kernel/signal.c-save 2003-06-03 10:14:55.000000000 -0700 +++ kernel/signal.c 2003-07-04 13:46:55.000000000 -0700 @@ -2081,7 +2081,7 @@ sys_kill(int pid, int sig) info.si_signo = sig; info.si_errno = 0; info.si_code = SI_USER; - info.si_pid = current->pid; + info.si_pid = current->tgid; info.si_uid = current->uid; return kill_something_info(sig, &info, pid); @@ -2104,7 +2104,7 @@ sys_tkill(int pid, int sig) info.si_signo = sig; info.si_errno = 0; info.si_code = SI_TKILL; - info.si_pid = current->pid; + info.si_pid = current->tgid; info.si_uid = current->uid; read_lock(&tasklist_lock);