From 70f29f87cdb56451db9b4d1f8daa5b87489999d1 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Sat, 22 Oct 1994 02:32:16 +0000 Subject: [PATCH] ExitSysinstall() fixed: use dialog functions properly. don't clear screen with last message on exit(0), I want to see it still. relay on dialog_active properly. --- sbin/sysinstall/utils.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/sbin/sysinstall/utils.c b/sbin/sysinstall/utils.c index 7f4900123adc..5dc203ebf2a5 100644 --- a/sbin/sysinstall/utils.c +++ b/sbin/sysinstall/utils.c @@ -6,7 +6,7 @@ * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp * ---------------------------------------------------------------------------- * - * $Id: utils.c,v 1.6 1994/10/21 04:43:07 ache Exp $ + * $Id: utils.c,v 1.7 1994/10/21 18:08:33 paul Exp $ * */ @@ -93,20 +93,25 @@ void ExitSysinstall() { if (getpid() == 1) { + if (dialog_active) { clear(); + dialog_update(); + } if (reboot(RB_AUTOBOOT) == -1) if (dialog_active) { - dialog_clear(); + clear(); dialog_msgbox(TITLE, "\n\nCan't reboot machine -- hit reset button", 5,30,0); } else fprintf(stderr, "Can't reboot the machine -- hit the reset button"); while(1); - } else - clear(); - refresh(); + } else { + if (dialog_active) { + dialog_update(); end_dialog(); + } exit(0); + } } void *