summaryrefslogtreecommitdiff
path: root/src/nspawn
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/nspawn
parentc379f143a5ccdbc94a87cfca0174e7f21fa05f26 (diff)
parent42718282f5b545684ca1a4e3fd71f8c593d15f97 (diff)
Merge pull request #1490 from poettering/machinectl-shell-race-fix
machinectl shell race fix
Diffstat (limited to 'src/nspawn')
-rw-r--r--src/nspawn/nspawn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c
index f4a2e3d9ba..ab93f98df4 100644
--- a/src/nspawn/nspawn.c
+++ b/src/nspawn/nspawn.c
@@ -3512,7 +3512,7 @@ int main(int argc, char *argv[]) {
rtnl_socket_pair[0] = safe_close(rtnl_socket_pair[0]);
- r = pty_forward_new(event, master, true, !interactive, &forward);
+ r = pty_forward_new(event, master, PTY_FORWARD_IGNORE_VHANGUP | (interactive ? 0 : PTY_FORWARD_READ_ONLY), &forward);
if (r < 0) {
log_error_errno(r, "Failed to create PTY forwarder: %m");
goto finish;