diff options
Diffstat (limited to 'src/process/vfork.c')
-rw-r--r-- | src/process/vfork.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/process/vfork.c b/src/process/vfork.c new file mode 100644 index 0000000..32a7a6e --- /dev/null +++ b/src/process/vfork.c @@ -0,0 +1,8 @@ +#include <unistd.h> +#include "syscall.h" + +pid_t vfork(void) +{ + /* vfork syscall cannot be made from C code */ + return syscall0(__NR_fork); +} |