summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-06 16:50:47 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-06 16:50:47 +0000
commit5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb (patch)
tree4e7403d2393bf4d61c385fcaa3df2c567f3dc419
parent9e04e31703a95b2dd65b83b2a428fa53b20152de (diff)
downloadmgaonline-5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb.tar
mgaonline-5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb.tar.gz
mgaonline-5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb.tar.bz2
mgaonline-5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb.tar.xz
mgaonline-5ac2389a3006bee6c88fcc0e3e0695b2b855cfbb.zip
(fork_exec) the second argument is never used; let's drop it and thus
simplify this function
-rwxr-xr-xmdkapplet3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 58b45d65..f0661dbd 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -184,11 +184,10 @@ sub harvester {
return if $clean;
}
sub fork_exec {
- my ($prog, $o_pid_table) = @_;
+ my ($prog) = @_;
my $pid = fork();
if (defined $pid) {
!$pid and do { exec($prog) or POSIX::_exit() };
- push @$o_pid_table, $pid if $o_pid_table;
return $pid;
} else {
refresh_gui(1);