Messages in this thread Patch in this message | | | Date | Sun, 20 Jan 2002 14:19:35 +0100 (CET) | From | Ingo Molnar <> | Subject | Re: [sched] [patch] fork-cleanup-2.5.3-pre2-A0 |
| |
> the attached patch against 2.5.3-pre2 removes the child-runs-first > ifdefs from kernel/fork.c. Very few of the bugreports were related to > child-runs-first, and for 2.5 i think it's acceptable to introduce > unconditional child-runs-first.
(attached.)
Ingo --- linux/kernel/fork.c.orig Sun Jan 20 10:31:53 2002 +++ linux/kernel/fork.c Sun Jan 20 10:57:17 2002 @@ -747,23 +747,16 @@ if (p->ptrace & PT_PTRACED) send_sig(SIGSTOP, p, 1); -#define RUN_CHILD_FIRST 1 -#if RUN_CHILD_FIRST wake_up_forked_process(p); /* do this last */ -#else - wake_up_process(p); /* do this last */ -#endif ++total_forks; if (clone_flags & CLONE_VFORK) wait_for_completion(&vfork); -#if RUN_CHILD_FIRST else /* * Let the child process run first, to avoid most of the * COW overhead when the child exec()s afterwards. */ current->need_resched = 1; -#endif fork_out: return retval;
| |