summaryrefslogtreecommitdiff
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:16:39 -0800
committerLinus Torvalds <torvalds@athlon.transmeta.com>2002-02-05 00:16:39 -0800
commit463727d199b089c420e750d43f75ea9403a45e12 (patch)
tree5bc53f8216433d437c754729fc8208a908f7b7dd /kernel/fork.c
parent0713f0290054eb9769d588120712e3dccfb3ec34 (diff)
v2.5.2.2 -> v2.5.2.3
- Al Viro: VFS inode allocation moved down to filesystem, trim inodes - Greg KH: USB update, hotplug documentation - Kai Germaschewski: ISDN update - Ingo Molnar: scheduler tweaking ("J2") - Arnaldo: emu10k kdev_t updates - Ben Collins: firewire updates - Björn Wesen: cris arch update - Hal Duston: ps2esdi driver bio/kdev_t fixes - Jean Tourrilhes: move wireless drivers into drivers/net/wireless, update wireless API #1 - Richard Gooch: devfs race fix - OGAWA Hirofumi: FATFS update
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index fc47857460de..661f650e6ed2 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -747,23 +747,16 @@ int do_fork(unsigned long clone_flags, unsigned long stack_start,
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;