hdd_menu: my_popen() needs waitpid to avoid zombies

Origin commit data
------------------
Branch: ni/coolstream
Commit: d411f6d996
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)


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

------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2015-02-08 00:55:44 +01:00
committed by Jacek Jendrzej
parent 460b7c25c3
commit 9c0f9cf720

View File

@@ -37,6 +37,7 @@
#include <dirent.h>
#include <dlfcn.h>
#include <sys/mount.h>
#include <sys/wait.h>
#include <global.h>
#include <neutrino.h>
@@ -202,6 +203,7 @@ void CHDDMenuHandler::getBlkIds()
hdd_list.push_back(hdd);
}
fclose(f);
waitpid(pid, NULL, 0); /* beware of the zombie apocalypse! */
}
std::string CHDDMenuHandler::getDefaultPart(std::string dev)