mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
hdd_menu: my_popen() needs waitpid to avoid zombies
Origin commit data
------------------
Commit: 67bd1738a6
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2015-02-08 (Sun, 08 Feb 2015)
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/swap.h>
|
#include <sys/swap.h>
|
||||||
#include <sys/vfs.h>
|
#include <sys/vfs.h>
|
||||||
|
#include <sys/wait.h>
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <sys/mount.h>
|
#include <sys/mount.h>
|
||||||
@@ -197,6 +198,7 @@ void CHDDMenuHandler::getBlkIds()
|
|||||||
hdd_list.push_back(hdd);
|
hdd_list.push_back(hdd);
|
||||||
}
|
}
|
||||||
fclose(f);
|
fclose(f);
|
||||||
|
waitpid(pid, NULL, 0); /* beware of the zombie apocalypse! */
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string CHDDMenuHandler::getDefaultPart(std::string dev)
|
std::string CHDDMenuHandler::getDefaultPart(std::string dev)
|
||||||
|
Reference in New Issue
Block a user