diff options
Diffstat (limited to 'src/init')
-rw-r--r-- | src/init/main.c | 4 | ||||
-rw-r--r-- | src/init/syscalls.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c index c6d19a3..4298516 100644 --- a/src/init/main.c +++ b/src/init/main.c @@ -22,6 +22,10 @@ int main() { if (_syscall_fork() > 0) { _syscall_debuglog("parent ", sizeof("parent ") - 1); + + _syscall_await(NULL, NULL); + _syscall_debuglog("death ", + sizeof("death ") - 1); } else { _syscall_debuglog("child ", sizeof("child ") - 1); diff --git a/src/init/syscalls.c b/src/init/syscalls.c index d0da33e..4bbd83a 100644 --- a/src/init/syscalls.c +++ b/src/init/syscalls.c @@ -12,6 +12,10 @@ int _syscall_fork() { return _syscall(_SYSCALL_FORK, 0, 0, 0); } +int _syscall_await(char *buf, int *len) { + return _syscall(_SYSCALL_AWAIT, (int)buf, (int)len, 0); +} + int _syscall_debuglog(const char *msg, size_t len) { return _syscall(_SYSCALL_DEBUGLOG, (int)msg, len, 0); } |