opkg_manager: avoid the zombie apocalypse, use waitpid()

This commit is contained in:
Stefan Seyfried
2017-01-28 14:06:39 +01:00
parent 904788b992
commit 4dc1efbf2c

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);
}