From 9c0f9cf720e135d5d5471282feae2500918766c9 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 Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/d411f6d996dfaf39263361c1aefd4ff0f0252551 Author: Stefan Seyfried Date: 2015-02-08 (Sun, 08 Feb 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- 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 3a600da77..2b6a21c83 100644 --- a/src/gui/hdd_menu.cpp +++ b/src/gui/hdd_menu.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include #include @@ -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)