diff options
-rw-r--r-- | include/linux/sched.h | 1 | ||||
-rw-r--r-- | kernel/fork.c | 9 |
2 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 11fcafaf4ae4..0657368bd78f 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1777,7 +1777,6 @@ extern void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t * | |||
1777 | /* | 1777 | /* |
1778 | * Per process flags | 1778 | * Per process flags |
1779 | */ | 1779 | */ |
1780 | #define PF_STARTING 0x00000002 /* being created */ | ||
1781 | #define PF_EXITING 0x00000004 /* getting shut down */ | 1780 | #define PF_EXITING 0x00000004 /* getting shut down */ |
1782 | #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ | 1781 | #define PF_EXITPIDONE 0x00000008 /* pi exit done on shut down */ |
1783 | #define PF_VCPU 0x00000010 /* I'm a virtual CPU */ | 1782 | #define PF_VCPU 0x00000010 /* I'm a virtual CPU */ |
diff --git a/kernel/fork.c b/kernel/fork.c index 44b0e21af50e..26a7a6707fa7 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1046,7 +1046,6 @@ static void copy_flags(unsigned long clone_flags, struct task_struct *p) | |||
1046 | 1046 | ||
1047 | new_flags &= ~(PF_SUPERPRIV | PF_WQ_WORKER); | 1047 | new_flags &= ~(PF_SUPERPRIV | PF_WQ_WORKER); |
1048 | new_flags |= PF_FORKNOEXEC; | 1048 | new_flags |= PF_FORKNOEXEC; |
1049 | new_flags |= PF_STARTING; | ||
1050 | p->flags = new_flags; | 1049 | p->flags = new_flags; |
1051 | } | 1050 | } |
1052 | 1051 | ||
@@ -1579,14 +1578,6 @@ long do_fork(unsigned long clone_flags, | |||
1579 | get_task_struct(p); | 1578 | get_task_struct(p); |
1580 | } | 1579 | } |
1581 | 1580 | ||
1582 | /* | ||
1583 | * We set PF_STARTING at creation in case tracing wants to | ||
1584 | * use this to distinguish a fully live task from one that | ||
1585 | * hasn't finished SIGSTOP raising yet. Now we clear it | ||
1586 | * and set the child going. | ||
1587 | */ | ||
1588 | p->flags &= ~PF_STARTING; | ||
1589 | |||
1590 | wake_up_new_task(p); | 1581 | wake_up_new_task(p); |
1591 | 1582 | ||
1592 | /* forking complete and child started to run, tell ptracer */ | 1583 | /* forking complete and child started to run, tell ptracer */ |