diff options
author | dzwdz | 2021-11-02 20:22:51 +0100 |
---|---|---|
committer | dzwdz | 2021-11-02 20:22:51 +0100 |
commit | 55121883effaca2c8b35cff956092e6f0a99f8ce (patch) | |
tree | cb38e53d855e3dab3eb6962fb19d9bff7c7bc20e /src/init/main.c | |
parent | a957c8f0c6b35171378522e03b4360cfc5527832 (diff) |
fork2() refactor: implement fs_fork2()
Diffstat (limited to 'src/init/main.c')
-rw-r--r-- | src/init/main.c | 6 |
1 files changed, 2 insertions, 4 deletions
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); } |