diff options
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); |