commit 3416ad2d2c50f629ea242d326729ff8179960a73
parent 372a1a1cf8fcf4d96d41df0b10c789f6a5e6b7c6
Author: Jaromil <jaromil@dyne.org>
Date: Mon, 20 Oct 2014 16:34:45 +0200
avoid using Tomb's PID in temp files and double the random #150
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tomb b/tomb
@@ -56,7 +56,7 @@ QRENCODE=1
MOUNTOPTS="rw,noatime,nodev"
# prefix for temporary files
-TMPPREFIX="/dev/shm/$$.$RANDOM."
+TMPPREFIX="/dev/shm/$RANDOM.$RANDOM."
# makes glob matching case insensitive
unsetopt CASE_MATCH
@@ -145,7 +145,7 @@ check_shm() {
# setup a special env var for zsh to create temp files that will
# then be deleted at the exit of each function using them.
- TMPPREFIX="$SHMPREFIX/$$.$RANDOM."
+ TMPPREFIX="$SHMPREFIX/$RANDOM.$RANDOM."
return 0
}