diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-04-16 23:24:39 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-04-16 23:24:39 +0200 |
commit | 8d567588cad053f79abe603ab113e1b85a92f1da (patch) | |
tree | d29f8cbd6233fac569b84774d7a72a5fd8049b29 /execute.c | |
parent | 2076ca540e4ffdd320e086c8b570a5bf19546022 (diff) |
automount: implement automount unit type
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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); |