aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/page
diff options
context:
space:
mode:
authorKris Maglione <jg@suckless.org>2009-05-25 23:55:04 -0400
committerKris Maglione <jg@suckless.org>2009-05-25 23:55:04 -0400
commit0e52c796bdd86faddecf7bb4bba64644056d75c3 (patch)
tree227c47325459884c57cd010df2d1fe280ff2cf42 /src/cmd/page
parent75d048884cfcb7cc4404b384da50923e22224365 (diff)
downloadplan9port-0e52c796bdd86faddecf7bb4bba64644056d75c3.tar.gz
plan9port-0e52c796bdd86faddecf7bb4bba64644056d75c3.tar.bz2
plan9port-0e52c796bdd86faddecf7bb4bba64644056d75c3.zip
page: fix for newer versions of ghostscript.
Diffstat (limited to 'src/cmd/page')
-rw-r--r--src/cmd/page/gs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/page/gs.c b/src/cmd/page/gs.c
index 8c0e1b59..7179429a 100644
--- a/src/cmd/page/gs.c
+++ b/src/cmd/page/gs.c
@@ -115,10 +115,11 @@ spawngs(GSInfo *g, char *safer)
nargs = 0;
args[nargs++] = "gs";
args[nargs++] = "-dNOPAUSE";
+ args[nargs++] = "-dNOPROMPT";
args[nargs++] = "-dDELAYSAFER";
+ args[nargs++] = "-dQUIET";
args[nargs++] = "-sDEVICE=bmp16m";
args[nargs++] = "-sOutputFile=/dev/fd/3";
- args[nargs++] = "-dQUIET";
args[nargs++] = "-r100";
sprint(tb, "-dTextAlphaBits=%d", textbits);
sprint(gb, "-dGraphicsAlphaBits=%d", gfxbits);
@@ -126,7 +127,6 @@ spawngs(GSInfo *g, char *safer)
args[nargs++] = tb;
if(gfxbits)
args[nargs++] = gb;
- args[nargs++] = "-";
args[nargs] = nil;
gspid = fork();
@@ -153,7 +153,7 @@ spawngs(GSInfo *g, char *safer)
dup(stdinp[0], 0);
dup(errout[1], 1);
- dup(errout[1], devnull); /* never anything useful */
+ dup(devnull, 2); /* never anything useful */
dup(dataout[1], 3);
dup(stdoutp[1], 4);
for(i=5; i<20; i++)