diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-15 08:01:10 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-15 08:01:10 +0000 |
commit | 605c80f6c5fd99a6bc01b69237ff8f00194e226d (patch) | |
tree | bc6ef61a1548343030bd21bb495ae3ac58fa5547 /usr.sbin/sysinstall/system.c | |
parent | 50acd3ec758b568a6f4293693dcf9c893ae143de (diff) | |
download | FreeBSD-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 'usr.sbin/sysinstall/system.c')
-rw-r--r-- | usr.sbin/sysinstall/system.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |