opkg_manager: avoid the zombie apocalypse, use waitpid()

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4dc1efbf2c
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2017-01-28 (Sat, 28 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-28 14:06:39 +01:00
parent 45444fb3f4
commit 8d2dd9d9a8

View File

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