This commit is contained in:
Eelco Dolstra 2017-01-19 15:15:45 +01:00
parent 2579e32c2b
commit 63e10b4d28
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -218,11 +218,10 @@ void killUser(uid_t uid);
pid to the caller. */
struct ProcessOptions
{
string errorPrefix;
bool dieWithParent;
bool runExitHandlers;
bool allowVfork;
ProcessOptions() : errorPrefix("error: "), dieWithParent(true), runExitHandlers(false), allowVfork(true) { };
string errorPrefix = "error: ";
bool dieWithParent = true;
bool runExitHandlers = false;
bool allowVfork = true;
};
pid_t startProcess(std::function<void()> fun, const ProcessOptions & options = ProcessOptions());