summaryrefslogtreecommitdiffstats
path: root/release
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1997-01-15 08:01:10 +0000
committerjkh <jkh@FreeBSD.org>1997-01-15 08:01:10 +0000
commit605c80f6c5fd99a6bc01b69237ff8f00194e226d (patch)
treebc6ef61a1548343030bd21bb495ae3ac58fa5547 /release
parent50acd3ec758b568a6f4293693dcf9c893ae143de (diff)
downloadFreeBSD-src-605c80f6c5fd99a6bc01b69237ff8f00194e226d.zip
FreeBSD-src-605c80f6c5fd99a6bc01b69237ff8f00194e226d.tar.gz
Don't call systemShutdown() from signal handler so that the media device
is closed. The FTP library doesn't expect to be called recursively from an interrupt. :)
Diffstat (limited to 'release')
-rw-r--r--release/sysinstall/system.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/release/sysinstall/system.c b/release/sysinstall/system.c
index 85bb189..354f805 100644
--- a/release/sysinstall/system.c
+++ b/release/sysinstall/system.c
@@ -42,7 +42,7 @@ handle_intr(int sig)
WINDOW *save = savescr();
if (!msgYesNo("Are you sure you want to abort the installation?"))
- systemShutdown(1);
+ systemShutdown(-1);
else
restorescr(save);
}
@@ -115,7 +115,7 @@ void
systemShutdown(int status)
{
/* If some media is open, close it down */
- if (mediaDevice)
+ if (status >=0 && mediaDevice)
mediaDevice->shutdown(mediaDevice);
/* Shut down the dialog library */
OpenPOWER on IntegriCloud