By passing -n to savelog. In particular this prevents the creation of an empty $log.0 on first use when $log doesn't exist.
Signed-off-by: Ian Campbell <ian.campb...@citrix.com> --- v2: Put -n in correct place --- standalone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/standalone b/standalone index 27e2e7d..20a6ad5 100755 --- a/standalone +++ b/standalone @@ -192,7 +192,7 @@ ensure_logs() { with_logging() { local log=$1; shift ensure_logs - savelog -c 300 "$log" >/dev/null + savelog -c 300 -n "$log" >/dev/null "$@" 2>&1 | tee "$log" rc=${PIPESTATUS[0]} if [ $rc -ne 0 ] ; then -- 2.5.3 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel