author | wenzelm |
Mon, 18 Sep 2006 19:12:42 +0200 | |
changeset 20570 | f78dfa306918 |
parent 20569 | c315ba088073 |
child 20571 | cbcca0d536bf |
lib/Tools/display | file | annotate | diff | comparison | revisions |
--- a/lib/Tools/display Mon Sep 18 19:12:41 2006 +0200 +++ b/lib/Tools/display Mon Sep 18 19:12:42 2006 +0200 @@ -72,11 +72,11 @@ esac if [ -n "$CLEAN" ]; then - PRIVATE_FILE="$ISABELLE_TMP/$$"$(basename "$FILE") + PRIVATE_FILE="${ISABELLE_TMP:-/tmp}/$$"$(basename "$FILE") mv "$FILE" "$PRIVATE_FILE" || fail "Cannot move file: $FILE" $VIEWER "$PRIVATE_FILE" + sleep 5 ;try to avoid races rm -f "$PRIVATE_FILE" else exec $VIEWER "$FILE" fi -