From 8606fb5fc4381724ed7d4cafb99c67bd66c0b225 Mon Sep 17 00:00:00 2001 From: Guillaume Cottenceau Date: Mon, 1 Dec 2003 15:51:54 +0000 Subject: show on console #2 when shells are killed --- mdk-stage1/stage1.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mdk-stage1') diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c index 70d012d67..fb50748ce 100644 --- a/mdk-stage1/stage1.c +++ b/mdk-stage1/stage1.c @@ -629,8 +629,13 @@ int main(int argc __attribute__ ((unused)), char **argv __attribute__ ((unused)) stg1_error_message("Fatal error when launching Mandrake Move."); #endif - if (shell_pid != 0) + if (shell_pid != 0) { + int fd; kill(shell_pid, 9); + fd = open("/dev/tty2", O_RDWR); + write(fd, "Killed\n", 7); + close(fd); + } finish_frontend(); close_log(); -- cgit v1.2.1