patch-2.6.6-vs1.9.0
[linux-2.6.git] / kernel / pid.c
index 6ed44f5..a8b7eb3 100644 (file)
@@ -224,7 +224,8 @@ void fastcall detach_pid(task_t *task, enum pid_type type)
 
 task_t *find_task_by_pid(int nr)
 {
-       struct pid *pid = find_pid(PIDTYPE_PID, nr);
+       struct pid *pid = find_pid(PIDTYPE_PID,
+               vx_rmap_tgid(current->vx_info, nr));
 
        if (!pid)
                return NULL;