patch-2.2.0-pre6 linux/arch/i386/kernel/process.c
Next file: linux/arch/i386/kernel/ptrace.c
Previous file: linux/arch/i386/kernel/entry.S
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Fri Jan 8 15:05:41 1999
- Orig file:
v2.2.0-pre5/linux/arch/i386/kernel/process.c
- Orig date:
Mon Dec 28 15:00:52 1998
diff -u --recursive --new-file v2.2.0-pre5/linux/arch/i386/kernel/process.c linux/arch/i386/kernel/process.c
@@ -781,6 +781,18 @@
return do_fork(clone_flags, newsp, ®s);
}
+asmlinkage int sys_vfork(struct pt_regs regs)
+{
+ int child;
+
+ child = do_fork(CLONE_VM | SIGCHLD, regs.esp, ®s);
+
+ if (child > 0)
+ sleep_on(¤t->vfork_sleep);
+
+ return child;
+}
+
/*
* sys_execve() executes a new program.
*/
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov