lkml.org 
[lkml]   [2002]   [Jan]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [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;
\
 
 \ /
  Last update: 2005-03-22 13:15    [W:0.047 / U:0.196 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site