diff options
| author | Rusty Russell <rusty@rustcorp.com.au> | 2002-05-12 23:52:31 -0700 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2002-05-12 23:52:31 -0700 |
| commit | 27568369be8ce189a1bd32c80497ff229ed3de3a (patch) | |
| tree | 79680bec95707de6e830cf9b59941bf6a37e2e60 /include | |
| parent | 5e8a4a7d95318e8cf84e59dfb5659d178240f879 (diff) | |
[PATCH] Hotplug CPU prep
This changes do_fork() to return the task struct, rather than the PID.
Also changes CLONE_PID ("if my pid is 0, copy it") to CLONE_IDLETASK
("set child's pid to zero"), and disallows access to the flag from user
mode.
Diffstat (limited to 'include')
| -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 fdf83faccdde..392d2174d84a 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -39,7 +39,7 @@ struct exec_domain; #define CLONE_FS 0x00000200 /* set if fs info shared between processes */ #define CLONE_FILES 0x00000400 /* set if open files shared between processes */ #define CLONE_SIGHAND 0x00000800 /* set if signal handlers and blocked signals shared */ -#define CLONE_PID 0x00001000 /* set if pid shared */ +#define CLONE_IDLETASK 0x00001000 /* set if new pid should be 0 (kernel only)*/ #define CLONE_PTRACE 0x00002000 /* set if we want to let tracing continue on the child too */ #define CLONE_VFORK 0x00004000 /* set if the parent wants the child to wake it up on mm_release */ #define CLONE_PARENT 0x00008000 /* set if we want to have the same parent as the cloner */ @@ -663,7 +663,7 @@ extern void daemonize(void); extern task_t *child_reaper; extern int do_execve(char *, char **, char **, struct pt_regs *); -extern int do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned long); +extern struct task_struct *do_fork(unsigned long, unsigned long, struct pt_regs *, unsigned long); extern void FASTCALL(add_wait_queue(wait_queue_head_t *q, wait_queue_t * wait)); extern void FASTCALL(add_wait_queue_exclusive(wait_queue_head_t *q, wait_queue_t * wait)); |
