From 67bd1738a68d84ab403c07fb2ed85823ad18ad7f Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Sun, 8 Feb 2015 00:55:44 +0100 Subject: [PATCH] hdd_menu: my_popen() needs waitpid to avoid zombies --- src/gui/hdd_menu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/hdd_menu.cpp b/src/gui/hdd_menu.cpp index f23843cc0..382b8ccef 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include #include @@ -197,6 +198,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)