commit - 75d048884cfcb7cc4404b384da50923e22224365
commit + 0e52c796bdd86faddecf7bb4bba64644056d75c3
blob - 8c0e1b59f6ec29847f7c7bdb404029c5064ebf9f
blob + 7179429acc1035a47cccb47872bc70e34cedc046
--- src/cmd/page/gs.c
+++ src/cmd/page/gs.c
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);
args[nargs++] = tb;
if(gfxbits)
args[nargs++] = gb;
- args[nargs++] = "-";
args[nargs] = nil;
gspid = fork();
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++)