opkg_manager: avoid the zombie apocalypse, use waitpid()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 1454d09a75
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-29 (Sun, 29 Jan 2017)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2017-01-29 21:27:45 +01:00
committed by vanhofen
parent eb1874e7ed
commit 58f9c2aa6b

View File

@@ -781,6 +781,8 @@ void COPKGManager::getPkgData(const int pkg_content_id)
}
}
waitpid(pid, NULL, 0); /* beware of the zombie apocalypse! */
fclose(f);
}