summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--release/sysinstall/system.c4
-rw-r--r--usr.sbin/sade/system.c4
-rw-r--r--usr.sbin/sysinstall/system.c4
3 files changed, 6 insertions, 6 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 */
diff --git a/usr.sbin/sade/system.c b/usr.sbin/sade/system.c
index 85bb189..354f805 100644
--- a/usr.sbin/sade/system.c
+++ b/usr.sbin/sade/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 */
diff --git a/usr.sbin/sysinstall/system.c b/usr.sbin/sysinstall/system.c
index 85bb189..354f805 100644
--- a/usr.sbin/sysinstall/system.c
+++ b/usr.sbin/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