aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-01-19 15:15:45 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-01-19 17:06:04 +0100
commit63e10b4d28e64107e51207f292ab0093a95c1bc6 (patch)
tree59dfc4d74f12619dbb195aefc16447133b8ddac5 /src/libutil
parent2579e32c2bf47a483b823fdf12f0ff66ecaf1b95 (diff)
Cleanup
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/util.hh9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/libutil/util.hh b/src/libutil/util.hh
index 052173ff9..67d289168 100644
--- a/src/libutil/util.hh
+++ b/src/libutil/util.hh
@@ -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());