]> git.ipfire.org Git - thirdparty/util-linux.git/commit
scriptlive: terminate session at end of the log
authorKarel Zak <kzak@redhat.com>
Fri, 22 Nov 2019 11:34:45 +0000 (12:34 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 22 Nov 2019 12:03:35 +0000 (13:03 +0100)
commit95d255a81997a298ec802566fe65c8951558907e
tree8b376c87f6f0a23308d143bf68eacf8ff2708d4b
parentf896aef36bb0d26c5a7a816ce163a481c41a6485
scriptlive: terminate session at end of the log

We need a proper way how to inform child (shell) that the game is
over. It seems the best is to send EOF to child rather than
immediately break PTY mainloop where we have poll(), because shell can
still produce data etc.

Signed-off-by: Karel Zak <kzak@redhat.com>
include/pty-session.h
lib/pty-session.c
term-utils/scriptlive.c