summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-09 11:38:50 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-09 11:38:50 +0000
commit52930567d7a855ea39dbb07bcb0ed5aebefeb5d8 (patch)
tree04bddb8b14f3067b0bcd4ea8a40dd667a3577c4e /mdkapplet
parentd0d37b64a3315d23a4806cfcc39d1f74640acd33 (diff)
downloadmgaonline-52930567d7a855ea39dbb07bcb0ed5aebefeb5d8.tar
mgaonline-52930567d7a855ea39dbb07bcb0ed5aebefeb5d8.tar.gz
mgaonline-52930567d7a855ea39dbb07bcb0ed5aebefeb5d8.tar.bz2
mgaonline-52930567d7a855ea39dbb07bcb0ed5aebefeb5d8.tar.xz
mgaonline-52930567d7a855ea39dbb07bcb0ed5aebefeb5d8.zip
(fork_exec) just resuse run_program
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet8
1 files changed, 2 insertions, 6 deletions
diff --git a/mdkapplet b/mdkapplet
index fe11cbf5..7a8e725e 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -196,12 +196,8 @@ sub harvester {
return if $clean;
}
sub fork_exec {
- my $pid = fork();
- if (defined $pid) {
- !$pid and do { exec(@_) or POSIX::_exit() };
- } else {
- refresh_gui(1);
- }
+ run_program::raw({ detach => 1 }, @_);
+ refresh_gui(1);
}
sub refresh_gui {
my ($sens) = @_;