From aa6398654727a7ebc408f50520fe6ae3266ae27b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 18 Feb 2005 17:31:25 +0000 Subject: don't reboot if the window manager did not exit --- perl-install/diskdrake/interactive.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/diskdrake/interactive.pm b/perl-install/diskdrake/interactive.pm index ad252332f..b5faef5cb 100644 --- a/perl-install/diskdrake/interactive.pm +++ b/perl-install/diskdrake/interactive.pm @@ -1295,7 +1295,7 @@ sub tell_wm_and_reboot() { my ($wm, $pid) = @ARGV; my $nb; for ($nb = 20; $nb && -e "/proc/$pid"; $nb--) { sleep 1 } - exec 'reboot'; + exec 'reboot' if $nb; ), $wm, $pid; } } -- cgit v1.2.1