summaryrefslogtreecommitdiff
path: root/src/cmd/init/init.c
diff options
context:
space:
mode:
authordzwdz2023-09-25 00:12:57 +0200
committerdzwdz2023-09-25 00:12:57 +0200
commit2c78dc983d09e136dd016ae6ecee6b191e033de1 (patch)
treefa3f0c858a0c1b61d00d4a7474e80b1aa0368bbf /src/cmd/init/init.c
parent16138fc20fc9c472af37fb8385a997a0d9202f32 (diff)
kernel/intr: accept a message, allow killing processes via intrs
Diffstat (limited to 'src/cmd/init/init.c')
-rw-r--r--src/cmd/init/init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c
index 7f26f1b..5c49281 100644
--- a/src/cmd/init/init.c
+++ b/src/cmd/init/init.c
@@ -34,7 +34,7 @@ void redirect(const char *exe, const char *out, const char *in) {
exit(1);
}
_sys_await();
- _sys_intr();
+ _sys_intr(NULL, 0);
_sys_sleep(1000);
}
}
@@ -42,7 +42,7 @@ void redirect(const char *exe, const char *out, const char *in) {
void shutdown(void) {
printf("[init] intr\n");
- _sys_intr();
+ _sys_intr(NULL, 0);
_sys_sleep(1000);
printf("[init] filicide\n");
_sys_filicide();