From 55121883effaca2c8b35cff956092e6f0a99f8ce Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 2 Nov 2021 20:22:51 +0100 Subject: fork2() refactor: implement fs_fork2() --- src/init/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/init/main.c') diff --git a/src/init/main.c b/src/init/main.c index 5df6bb3..795e2ac 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -32,10 +32,8 @@ int main(void) { } void fs_prep(void) { - handle_t front; - front = _syscall_fs_create(); - - if (!_syscall_fork()) { + handle_t front = _syscall_fs_fork2(); + if (!front) { tar_driver(&_initrd); _syscall_exit(1); } -- cgit v1.2.3