Revert "daemon: Fix possible use-after-free."

This reverts commit 1303a4a451.
This commit is contained in:
Ludovic Courtès 2015-05-19 08:02:52 +02:00
parent e53fc0c8a3
commit a88b8c5c98
3 changed files with 28 additions and 26 deletions

View file

@ -257,11 +257,6 @@ void killUser(uid_t uid);
string runProgram(Path program, bool searchPath = false,
const Strings & args = Strings());
/* Convert a list of strings to a null-terminated vector of char
*'s. The result must not be accessed beyond the lifetime of the
list of strings. */
std::vector<const char *> stringsToCharPtrs(const Strings & ss);
/* Close all file descriptors except stdin, stdout, stderr, and those
listed in the given set. Good practice in child processes. */
void closeMostFDs(const set<int> & exceptions);