* Re: [9fans] deadlock in page(1)
@ 2003-01-08 11:50 bwc
2003-01-08 15:00 ` Richard Miller
2003-01-08 16:47 ` Russ Cox
0 siblings, 2 replies; 4+ messages in thread
From: bwc @ 2003-01-08 11:50 UTC (permalink / raw)
To: 9fans
[-- Attachment #1: Type: text/plain, Size: 152 bytes --]
Is this a problem in pdf2ps also? When I ps2pdf'ed fossil.pdf and sent the
result to my HP4000, the printer hung. Had to power cycle it.
Brantley
[-- Attachment #2: Type: message/rfc822, Size: 1805 bytes --]
From: Richard Miller <miller@hamnavoe.demon.co.uk>
To: 9fans@cse.psu.edu
Subject: [9fans] deadlock in page(1)
Date: Wed, 8 Jan 2003 11:40:28 0000
Message-ID: <10448d781152600dab2fec6cee720288@hamnavoe.demon.co.uk>
When page calls gs to display a postscript file which uses \r as a line
terminator (not \n or \r\n), deadlock ensues. Here's a correction (which
may also reduce the need for the '-P' option):
/sys/src/cmd/page/ps.c:429 a ps.c:430,434
> /*
> * If last line terminator is \r, gs will read ahead to check for \n
> * so send one to avoid deadlock.
> */
> write(ps->gsfd, "\n", 1);
-- Richard Miller
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] deadlock in page(1)
2003-01-08 11:50 [9fans] deadlock in page(1) bwc
@ 2003-01-08 15:00 ` Richard Miller
2003-01-08 16:47 ` Russ Cox
1 sibling, 0 replies; 4+ messages in thread
From: Richard Miller @ 2003-01-08 15:00 UTC (permalink / raw)
To: 9fans
> Is this a problem in pdf2ps also?
No, it was specifically an interaction between page and gs.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [9fans] deadlock in page(1)
2003-01-08 11:50 [9fans] deadlock in page(1) bwc
2003-01-08 15:00 ` Richard Miller
@ 2003-01-08 16:47 ` Russ Cox
1 sibling, 0 replies; 4+ messages in thread
From: Russ Cox @ 2003-01-08 16:47 UTC (permalink / raw)
To: 9fans
I don't think pdf2ps has this problem.
Pdf2ps generates enormous files, since
they're just 300dpi (maybe 600dpi?) bitmaps.
They take a long time to print.
Better just to use fossil.ps.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [9fans] deadlock in page(1)
2003-01-07 17:19 [9fans] cdrw? dvdrw ? jmk
@ 2003-01-08 11:40 ` Richard Miller
0 siblings, 0 replies; 4+ messages in thread
From: Richard Miller @ 2003-01-08 11:40 UTC (permalink / raw)
To: 9fans
When page calls gs to display a postscript file which uses \r as a line
terminator (not \n or \r\n), deadlock ensues. Here's a correction (which
may also reduce the need for the '-P' option):
/sys/src/cmd/page/ps.c:429 a ps.c:430,434
> /*
> * If last line terminator is \r, gs will read ahead to check for \n
> * so send one to avoid deadlock.
> */
> write(ps->gsfd, "\n", 1);
-- Richard Miller
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-01-08 16:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-08 11:50 [9fans] deadlock in page(1) bwc
2003-01-08 15:00 ` Richard Miller
2003-01-08 16:47 ` Russ Cox
-- strict thread matches above, loose matches on Subject: below --
2003-01-07 17:19 [9fans] cdrw? dvdrw ? jmk
2003-01-08 11:40 ` [9fans] deadlock in page(1) Richard Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).