diff options
author | dzwdz | 2021-07-26 19:39:57 +0200 |
---|---|---|
committer | dzwdz | 2021-07-26 19:39:57 +0200 |
commit | 3c8cc57cd1d7b04ab92dc80bc0e0c9a481d905f8 (patch) | |
tree | 481ae0421ed8d0046f1735ad143576ae4c8f21bd /src/init/main.c | |
parent | 2ae4e31b74efa29cc92554647d5c9dce077971c4 (diff) |
exit() now switches to the first running process
i used a linked list because it's the simplest way to implement this
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c index 41a6ac0..c32ac01 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -20,6 +20,9 @@ int main() { _syscall(SC_FORK, 0, 0, 0); + debuglog("i got forked. ", + sizeof("i got forked. ") - 1); + exit( "bye from init! ", sizeof("bye from init! ") - 1); } |