summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xcontrol-center6
1 files changed, 5 insertions, 1 deletions
diff --git a/control-center b/control-center
index 193bb390..d71a5a79 100755
--- a/control-center
+++ b/control-center
@@ -602,7 +602,11 @@ sub compute_exec_string {
}
push @pid_launched, $pid;
} elsif ($gtkplug == -1) { # explicitely not embedded
- system($exec . " &");
+ unless ($pid = fork) {
+ splash_warning(_("cannot fork: %s", $~)) unless defined $pid;
+ exec($exec);
+ }
+ #system($exec . " &");
} else { # gtkplug == 0
$emb_socket->show;
$SIG{CHLD} = undef;