summaryrefslogtreecommitdiff
path: root/src/run
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-10-07 22:01:53 +0200
committerDaniel Mack <github@zonque.org>2015-10-07 22:01:53 +0200
commit8aec6ec510884cbcad7327bead40751ac1b8fd1b (patch)
treeffddfc96350cd8c6ac23a93245c89532f4e184a8 /src/run
parentc379f143a5ccdbc94a87cfca0174e7f21fa05f26 (diff)
parent42718282f5b545684ca1a4e3fd71f8c593d15f97 (diff)
Merge pull request #1490 from poettering/machinectl-shell-race-fix
machinectl shell race fix
Diffstat (limited to 'src/run')
-rw-r--r--src/run/run.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/run/run.c b/src/run/run.c
index 62687591f4..bb18dd4383 100644
--- a/src/run/run.c
+++ b/src/run/run.c
@@ -828,7 +828,7 @@ static int start_transient_service(
if (!arg_quiet)
log_info("Running as unit %s.\nPress ^] three times within 1s to disconnect TTY.", service);
- r = pty_forward_new(event, master, false, false, &forward);
+ r = pty_forward_new(event, master, PTY_FORWARD_IGNORE_INITIAL_VHANGUP, &forward);
if (r < 0)
return log_error_errno(r, "Failed to create PTY forwarder: %m");