From 605c80f6c5fd99a6bc01b69237ff8f00194e226d Mon Sep 17 00:00:00 2001 From: jkh Date: Wed, 15 Jan 1997 08:01:10 +0000 Subject: 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. :) --- release/sysinstall/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'release/sysinstall/system.c') 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 */ -- cgit v1.1