]> git.ipfire.org Git - thirdparty/util-linux.git/commit
script: move timing file opening close to use of it
authorSami Kerola <kerolasa@iki.fi>
Tue, 3 Mar 2015 22:06:01 +0000 (22:06 +0000)
committerSami Kerola <kerolasa@iki.fi>
Mon, 8 Jun 2015 20:53:37 +0000 (21:53 +0100)
commit9580536a7ffc1b962cfcd8026604a5402fb2a54f
treea49f206b4cf4664192dab4df27a14567d49a8c2c
parent2ddadb5eda64d6c2ba3ca7c7260ff89de9e1bc27
script: move timing file opening close to use of it

This allows removing almost immediate closure of file handle in the
doshell() function that does not use the file.

Proposed-by: Karel Zak <kzak@redhat.com>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
term-utils/script.c