[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#138161: xdvi SIGUSR1 fix



Tags: patch

changing the end of the xdvi script to exec xdvi.bin, rather than
just run it is a simple (and more efficient) fix.

the xdvi script always returns 1 or 0, whereas this version will
potentially return other non-zero codes on error.

i note that the oxdvi wrapper does similar, and the "exec" code seems
to have been commented out of the xdvi script (presumably when the
.dvi.gz handling was added).

--- /tmp/xdvi.old       Fri Mar 15 16:29:58 2002
+++ /usr/bin/xdvi       Fri Mar 15 16:30:08 2002
@@ -71,5 +71,4 @@
     filename=$tempfile
 fi
 
-xdvi.bin $NAMEOPT $args $filename || exit 1
-exit 0
+exec xdvi.bin $NAMEOPT $args $filename

i noticed this while trying to use whizzytex with xdvi. matthias will
be happy to know whizzytex/xdvi works with this fix.

-- 
 - Gus



Reply to: