9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: bwc@coraid.com
To: 9fans@cse.psu.edu
Subject: Re: [9fans] deadlock in page(1)
Date: Wed,  8 Jan 2003 06:50:44 -0500	[thread overview]
Message-ID: <3f1b7618f9ef321cb0cd3eea06a7b8d1@coraid.com> (raw)

[-- 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

             reply	other threads:[~2003-01-08 11:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-08 11:50 bwc [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3f1b7618f9ef321cb0cd3eea06a7b8d1@coraid.com \
    --to=bwc@coraid.com \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).