projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://ftp.x.org/contrib/applications/xscreensaver-2.24.tar.gz
[xscreensaver]
/
hacks
/
vidwhacker
diff --git
a/hacks/vidwhacker
b/hacks/vidwhacker
index 7bbc4079b920fbadd506fa1d78107ad44e8fed9e..a2ab029b99c0cb54e99b8660e75ada37f0bde51e 100755
(executable)
--- a/
hacks/vidwhacker
+++ b/
hacks/vidwhacker
@@
-308,8
+308,11
@@
main() {
if [ -s $tmp_ppm2 ]; then
if [ "$verbose" = true ]; then
echo "launching xv $xvargs $tmp_ppm2" >&2
if [ -s $tmp_ppm2 ]; then
if [ "$verbose" = true ]; then
echo "launching xv $xvargs $tmp_ppm2" >&2
+ ls -lF $tmp_ppm2
fi
fi
- xv $xvargs $tmp_ppm2 &
+
+ # cat the file so that we can nuke it without racing against xv.
+ cat $tmp_ppm2 | xv $xvargs - &
pid=$!
fi
fi
pid=$!
fi
fi
@@
-324,4
+327,4
@@
main() {
main $@
# to find stray xv data:
main $@
# to find stray xv data:
-# xwininfo -root -children|grep 'xv image comments' | awk '{print $1}'
+# xwininfo -root -children|grep 'xv image comments' | awk '{print
"xkill -id ",
$1}'