summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrol-center5
1 files changed, 3 insertions, 2 deletions
diff --git a/control-center b/control-center
index 8ef5a4a9..51e00264 100755
--- a/control-center
+++ b/control-center
@@ -563,12 +563,13 @@ sub sig_usr2 {
}
sub fork_ {
- my ($prog) = @_;
+ my ($prog, $do_not_kill) = @_;
my $pid;
unless ($pid = fork) {
splash_warning(_("cannot fork: %s", $~)) unless defined $pid;
exec($prog);
}
+ return if $do_not_kill;
push @pid_launched, $pid if ($embedded);
}
@@ -622,7 +623,7 @@ sub compute_exec_string {
my $exec_log = "logdrake --explain=$log_exp --embedded " . $exp_socket->window->XWINDOW . " " . $$;
$show_log = 0;
if ($exec =~ /(drakfont|drakconnect|drakboot)/) { $exp_frame->hide() } # $window_global->height < 600
- fork_($exec_log);
+ fork_($exec_log, 1);
}
}