summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-16 23:24:39 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-16 23:24:39 +0200
commit8d567588cad053f79abe603ab113e1b85a92f1da (patch)
treed29f8cbd6233fac569b84774d7a72a5fd8049b29 /execute.c
parent2076ca540e4ffdd320e086c8b570a5bf19546022 (diff)
automount: implement automount unit type
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/execute.c b/execute.c
index dfedb31a53..357fd5c208 100644
--- a/execute.c
+++ b/execute.c
@@ -788,10 +788,11 @@ int exec_spawn(ExecCommand *command,
goto fail;
}
- if (setsid() < 0) {
- r = EXIT_SETSID;
- goto fail;
- }
+ if (!context->no_setsid)
+ if (setsid() < 0) {
+ r = EXIT_SETSID;
+ goto fail;
+ }
umask(context->umask);