mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
opkg_manager: avoid the zombie apocalypse, use waitpid()
Origin commit data
------------------
Commit: 1454d09a75
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)
This commit is contained in:
committed by
vanhofen
parent
145e85ba56
commit
a56e85336d
@@ -781,6 +781,8 @@ void COPKGManager::getPkgData(const int pkg_content_id)
|
||||
}
|
||||
}
|
||||
|
||||
waitpid(pid, NULL, 0); /* beware of the zombie apocalypse! */
|
||||
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user