From ffc3fd2a80c15784f5de2734ba9e48a01e82a9f4 Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 9 May 2016 01:15:50 +0000 Subject: tlmgrgui: use exit instead of finish git-svn-id: svn://tug.org/texlive/trunk@40969 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/scripts/texlive/tlmgrgui.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Master') diff --git a/Master/texmf-dist/scripts/texlive/tlmgrgui.pl b/Master/texmf-dist/scripts/texlive/tlmgrgui.pl index 07b82413168..228ad86e2d6 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgrgui.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgrgui.pl @@ -1927,8 +1927,6 @@ sub SelectedPackages { sub critical_updates_done_msg_and_end { # terminate here immediately so that we are sure the auto-updater # is run immediately - # make sure we exit in finish(0) - $::gui_mode = 0; # warn that program will now be terminated $mw->Dialog(-title => __("Warning"), -text => __("Critical updates have been installed.\nProgram will terminate now.\nPlease restart if necessary."), @@ -1936,7 +1934,8 @@ sub critical_updates_done_msg_and_end { # also delete the main window before we kill the process to # make sure that Tk is happy (segfault on cmd line, email Taco) $mw->destroy; - finish(0); + # don't call finish(0) as we need to exit immediately + exit(0); } sub update_all_packages { -- cgit v1.2.3