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/machine | |
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/machine')
-rw-r--r-- | src/machine/machinectl.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/machine/machinectl.c b/src/machine/machinectl.c index 1f477e682b..97a9129ccd 100644 --- a/src/machine/machinectl.c +++ b/src/machine/machinectl.c @@ -1242,8 +1242,6 @@ static int process_forward(sd_event *event, PTYForward **forward, int master, PT (flags & PTY_FORWARD_IGNORE_VHANGUP) && pty_forward_get_ignore_vhangup(*forward) == 0; - *forward = pty_forward_free(*forward); - if (!arg_quiet) { if (machine_died) log_info("Machine %s terminated.", name); |