]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: Also flush writes to timing file.
authorJesper Dahl Nyerup <nyerup@one.com>
Tue, 18 Feb 2014 19:48:45 +0000 (20:48 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 23 Apr 2014 09:55:07 +0000 (11:55 +0200)
commit6f5ececbcce7f8bbc869841c4cb7a2093589f58f
treeeb534100dd83c8bc1c198bbebad15e6c5fe1d235
parent72b92664b6b3ca35713a5a1dc4b79662285be0cd
script: Also flush writes to timing file.

If both -f and -t are given, flush the timing fd on each write, similar
to the behavior on the script fd. This allows playback of still-running
sessions, and reduces the risk of ending up with empty timing files when
script(1) exits abnormally.

Signed-off-by: Jesper Dahl Nyerup <nyerup@one.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
term-utils/script.c