summaryrefslogtreecommitdiff
path: root/src/core/execute.c
diff options
context:
space:
mode:
authorFranck Bui <fbui@suse.com>2016-11-14 17:37:40 +0100
committerFranck Bui <fbui@suse.com>2016-11-17 18:16:51 +0100
commitc891efaf8a37aa13d91835fb8d194f6dd750a78f (patch)
tree1753c3cfdea38a982f8fe866dc11fddb1925ae42 /src/core/execute.c
parent63d77c9254aee1f965df5574c98c2fa83b50567c (diff)
core: confirm_spawn: always accept units with same_pgrp set for now
For some reasons units remaining in the same process group as PID 1 (same_pgrp=true) fail to acquire the console even if it's not taken by anyone. So always accept for units with same_pgrp set for now.
Diffstat (limited to 'src/core/execute.c')
-rw-r--r--src/core/execute.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/execute.c b/src/core/execute.c
index c7b324ffa8..53aed1f287 100644
--- a/src/core/execute.c
+++ b/src/core/execute.c
@@ -2385,7 +2385,7 @@ static int exec_child(
exec_context_tty_reset(context, params);
- if (!manager_is_confirm_spawn_disabled(unit->manager)) {
+ if (unit_shall_confirm_spawn(unit)) {
const char *vc = params->confirm_spawn;
_cleanup_free_ char *cmdline = NULL;