diff options
Diffstat (limited to 'src/cmd/init')
-rw-r--r-- | src/cmd/init/driver/termcook.c | 2 | ||||
-rw-r--r-- | src/cmd/init/init.c | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/cmd/init/driver/termcook.c b/src/cmd/init/driver/termcook.c index e0edcf5..ed851e3 100644 --- a/src/cmd/init/driver/termcook.c +++ b/src/cmd/init/driver/termcook.c @@ -77,7 +77,7 @@ static void line_editor(void *) { } break; case 3: /* C-c */ - send_intr(""); + send_intr("C-c"); break; case 0x1c: /* C-\ */ send_intr("kill"); diff --git a/src/cmd/init/init.c b/src/cmd/init/init.c index 0a64054..9caa283 100644 --- a/src/cmd/init/init.c +++ b/src/cmd/init/init.c @@ -68,9 +68,10 @@ void redirect(const char *exe, const char *out, const char *in) { } } -void shutdown(void) { - printf("[init] intr\n"); - _sys_intr(NULL, 0); +void shutdown(struct intr_data *data) { + const char *msg = "impending shutdown"; + printf("[init] shutdown with message: %s\n", data->msg); + _sys_intr(msg, strlen(msg)); _sys_sleep(1000); printf("[init] filicide\n"); _sys_filicide(); |