From 28ad0209886debbcf1f97625b12447aff4579a84 Mon Sep 17 00:00:00 2001 From: Daouda Lo Date: Sat, 7 Sep 2002 14:19:10 +0000 Subject: - use fork/exec instead of system for non embeddable tools. --- control-center | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.1