summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-04-07 14:59:48 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-04-07 14:59:48 +0000
commitedf373530a51c701dbb15310a85a120b49ad8b43 (patch)
treeb661da6196d02ba43889c6914adb77ee897a2ae4 /mdkapplet
parent15f8fa73d9d6952c4b34e4cba9c17864a1c40b3e (diff)
downloadmgaonline-edf373530a51c701dbb15310a85a120b49ad8b43.tar
mgaonline-edf373530a51c701dbb15310a85a120b49ad8b43.tar.gz
mgaonline-edf373530a51c701dbb15310a85a120b49ad8b43.tar.bz2
mgaonline-edf373530a51c701dbb15310a85a120b49ad8b43.tar.xz
mgaonline-edf373530a51c701dbb15310a85a120b49ad8b43.zip
(fork_exec) actually pass extra arguments to forked process
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet3
1 files changed, 1 insertions, 2 deletions
diff --git a/mdkapplet b/mdkapplet
index 4807c2dc..237d1ae9 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -190,10 +190,9 @@ sub harvester {
return if $clean;
}
sub fork_exec {
- my ($prog) = @_;
my $pid = fork();
if (defined $pid) {
- !$pid and do { exec($prog) or POSIX::_exit() };
+ !$pid and do { exec(@_) or POSIX::_exit() };
return $pid;
} else {
refresh_gui(1);