summaryrefslogtreecommitdiff
path: root/src/execute.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-05 01:08:13 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-05 01:08:13 +0200
commit74922904348e53a992af63c581d4ccd3317ccce0 (patch)
tree7fd6588cbaf49feda15d3dd02fcd23ea9911124e /src/execute.c
parenta567261a29b4e19c0c195240411b7562063d99f8 (diff)
turn negative options into positive options
Diffstat (limited to 'src/execute.c')
-rw-r--r--src/execute.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c
index 982b7d1bcd..2acb11192d 100644
--- a/src/execute.c
+++ b/src/execute.c
@@ -197,7 +197,7 @@ static int connect_logger_as(const ExecContext *context, ExecOutput output, cons
output == EXEC_OUTPUT_KMSG ? "kmsg" : "syslog",
context->syslog_priority,
context->syslog_identifier ? context->syslog_identifier : ident,
- !context->syslog_no_prefix);
+ context->syslog_level_prefix);
if (fd != nfd) {
r = dup2(fd, nfd) < 0 ? -errno : nfd;
@@ -964,7 +964,7 @@ int exec_spawn(ExecCommand *command,
goto fail;
}
- if (!context->no_setsid)
+ if (!context->same_pgrp)
if (setsid() < 0) {
r = EXIT_SETSID;
goto fail;
@@ -1294,6 +1294,7 @@ void exec_context_init(ExecContext *c) {
c->ioprio = IOPRIO_PRIO_VALUE(IOPRIO_CLASS_BE, 0);
c->cpu_sched_policy = SCHED_OTHER;
c->syslog_priority = LOG_DAEMON|LOG_INFO;
+ c->syslog_level_prefix = true;
c->mount_flags = MS_SHARED;
}