opkg_manager: avoid the zombie apocalypse, use waitpid()

This commit is contained in:
Stefan Seyfried
2017-01-29 21:27:45 +01:00
committed by svenhoefer
parent fd9387a43c
commit 1454d09a75

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