]> 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>
Fri, 21 Feb 2014 12:16:20 +0000 (13:16 +0100)
commit5d0ce5e84fcf545caef142b0e4e25d001e1e8373
tree07a6524718fd3952e6a4dea6bff83992ec11bf90
parent2b6759df0c24a16ad5ddb855f0b453dd086a3747
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>
term-utils/script.c