summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-28 19:13:04 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-28 19:13:04 +0000
commit939e6a8837b6c5926b44937d1489a5f07f91c28a (patch)
tree0257c9ef5127d2e35ddb5f8ecc953ddd11d53f86
parentacdb61efe5ca2dcaeeced7ef2bda4afa638408fc (diff)
downloaddrakx-939e6a8837b6c5926b44937d1489a5f07f91c28a.tar
drakx-939e6a8837b6c5926b44937d1489a5f07f91c28a.tar.gz
drakx-939e6a8837b6c5926b44937d1489a5f07f91c28a.tar.bz2
drakx-939e6a8837b6c5926b44937d1489a5f07f91c28a.tar.xz
drakx-939e6a8837b6c5926b44937d1489a5f07f91c28a.zip
clear tty2 after shell is killed
-rw-r--r--mdk-stage1/stage1.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdk-stage1/stage1.c b/mdk-stage1/stage1.c
index 6b7bb0ab5..5540e48f4 100644
--- a/mdk-stage1/stage1.c
+++ b/mdk-stage1/stage1.c
@@ -368,9 +368,11 @@ void finish_preparing(void)
#ifdef SPAWN_SHELL
if (shell_pid != 0) {
int fd;
+ const char *clear = "\033[H\033[J";
kill(shell_pid, 9);
- fd = open("/dev/tty2", O_RDWR);
log_message("killed shell");
+ fd = open("/dev/tty2", O_RDWR);
+ write(fd, clear, strlen(clear));
close(fd);
}
#endif