diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-12-18 03:14:06 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-12-18 12:28:07 +0100 |
commit | 12807b5a49d1fe60434d473afe11ff81a4c92306 (patch) | |
tree | bc85f9c2f2da3c33356d134e448da689cb48e0b7 /src/nspawn | |
parent | ptyfwd: always write additional line break on stop (diff) | |
download | systemd-12807b5a49d1fe60434d473afe11ff81a4c92306.tar.xz systemd-12807b5a49d1fe60434d473afe11ff81a4c92306.zip |
ptyfwd: always flush buffer and disconnect before exit
Then, it is not necessary to manually drain PTY forwarder by the user
side. Also, not necessary to free PTY forwarder earlier explicitly to
make it disconnected.
Diffstat (limited to 'src/nspawn')
-rw-r--r-- | src/nspawn/nspawn.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index ee04ef8a2b..d465cd58e2 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -5740,9 +5740,6 @@ static int run_container( if (r < 0) return log_error_errno(r, "Failed to run event loop: %m"); - if (forward) - forward = pty_forward_free(forward); - /* Kill if it is not dead yet anyway */ if (!arg_register && !arg_keep_unit && bus) terminate_scope(bus, arg_machine); |