summaryrefslogtreecommitdiffstats
path: root/mdkapplet
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-03-16 11:29:56 +0000
committerThierry Vignaud <tv@mandriva.org>2007-03-16 11:29:56 +0000
commitdff36627d87ef7cee8537ba9740b243944804371 (patch)
tree9de58e4e5fa2ad31f1ee1e4d38a5a860f77a5f45 /mdkapplet
parentb323d87c844c006596dcef8be130c9534f01ead5 (diff)
downloadmgaonline-dff36627d87ef7cee8537ba9740b243944804371.tar
mgaonline-dff36627d87ef7cee8537ba9740b243944804371.tar.gz
mgaonline-dff36627d87ef7cee8537ba9740b243944804371.tar.bz2
mgaonline-dff36627d87ef7cee8537ba9740b243944804371.tar.xz
mgaonline-dff36627d87ef7cee8537ba9740b243944804371.zip
(harvester) return pids of reaped children
Diffstat (limited to 'mdkapplet')
-rwxr-xr-xmdkapplet4
1 files changed, 3 insertions, 1 deletions
diff --git a/mdkapplet b/mdkapplet
index bd6989d4..8a4ad6d9 100755
--- a/mdkapplet
+++ b/mdkapplet
@@ -189,12 +189,14 @@ ugtk2::exit(0);
# Signal management
sub harvester {
my ($_signame, $clean) = @_;
- my $childpid;
+ my ($childpid, @pids);
do {
$childpid = waitpid(-1, &WNOHANG);
+ push @pids, $childpid;
WIFEXITED($?) and refresh_gui(1);
} while $childpid > 0;
return if $clean;
+ return @pids;
}
sub fork_exec {
my $pid = run_program::raw({ detach => 1 }, @_);