diff options
author | Daouda Lo <daouda@mandriva.com> | 2002-09-07 14:19:10 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2002-09-07 14:19:10 +0000 |
commit | 28ad0209886debbcf1f97625b12447aff4579a84 (patch) | |
tree | 2d88dece6e7d021f16269d14a6435d534e462cf2 | |
parent | 032cd921d2ec588a1dd886cd0d884908afc88832 (diff) | |
download | control-center-28ad0209886debbcf1f97625b12447aff4579a84.tar control-center-28ad0209886debbcf1f97625b12447aff4579a84.tar.gz control-center-28ad0209886debbcf1f97625b12447aff4579a84.tar.bz2 control-center-28ad0209886debbcf1f97625b12447aff4579a84.tar.xz control-center-28ad0209886debbcf1f97625b12447aff4579a84.zip |
- use fork/exec instead of system for non embeddable tools.
-rwxr-xr-x | control-center | 6 |
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; |