summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2021-07-26 18:17:01 +0200
committerdzwdz2021-07-26 18:17:01 +0200
commit2ae4e31b74efa29cc92554647d5c9dce077971c4 (patch)
treecb87d1979ead008b49839ba52245960d81669db5 /src/init/main.c
parentbfe381768bf9fde9595a7fdacfb8037458fc0f6a (diff)
fork() pt 1: cloning process memory
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 119984e..41a6ac0 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -18,6 +18,8 @@ int main() {
debuglog("hello from init! ",
sizeof("hello from init! ") - 1);
+ _syscall(SC_FORK, 0, 0, 0);
+
exit( "bye from init! ",
sizeof("bye from init! ") - 1);
}