diff options
author | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 11:29:56 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2007-03-16 11:29:56 +0000 |
commit | dff36627d87ef7cee8537ba9740b243944804371 (patch) | |
tree | 9de58e4e5fa2ad31f1ee1e4d38a5a860f77a5f45 /mdkapplet | |
parent | b323d87c844c006596dcef8be130c9534f01ead5 (diff) | |
download | mgaonline-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-x | mdkapplet | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 }, @_); |