diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 7e0ff5dba986..541f4828f5e7 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -760,7 +760,7 @@ struct task_struct { | |||
760 | struct task_struct *group_leader; /* threadgroup leader */ | 760 | struct task_struct *group_leader; /* threadgroup leader */ |
761 | 761 | ||
762 | /* PID/PID hash table linkage. */ | 762 | /* PID/PID hash table linkage. */ |
763 | struct pid pids[PIDTYPE_MAX]; | 763 | struct pid_link pids[PIDTYPE_MAX]; |
764 | struct list_head thread_group; | 764 | struct list_head thread_group; |
765 | 765 | ||
766 | struct completion *vfork_done; /* for vfork() */ | 766 | struct completion *vfork_done; /* for vfork() */ |
@@ -899,7 +899,7 @@ static inline pid_t process_group(struct task_struct *tsk) | |||
899 | */ | 899 | */ |
900 | static inline int pid_alive(struct task_struct *p) | 900 | static inline int pid_alive(struct task_struct *p) |
901 | { | 901 | { |
902 | return p->pids[PIDTYPE_PID].nr != 0; | 902 | return p->pids[PIDTYPE_PID].pid != NULL; |
903 | } | 903 | } |
904 | 904 | ||
905 | extern void free_task(struct task_struct *tsk); | 905 | extern void free_task(struct task_struct *tsk); |