summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mdk-stage1/stage1.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 505bf655c..42604ac79 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -367,11 +367,11 @@ void finish_preparing(void)
#ifdef SPAWN_SHELL
if (shell_pid != 0) {
- int fd;
+ int fd;
kill(shell_pid, 9);
fd = open("/dev/tty2", O_RDWR);
- write(fd, "Killed\n", 7);
- close(fd);
+ write(fd, "Killed\n", 7);
+ close(fd);
}
#endif
}