[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bug release tags
From: |
John Darrington |
Subject: |
Re: bug release tags |
Date: |
Wed, 1 Aug 2007 08:41:15 +0800 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Jul 31, 2007 at 05:25:37PM -0700, Ben Pfaff wrote:
> How easy would it be to make ascii output go to a pipe instead of a
> file?
Easy: call pipe, then fdopen.
But I suspect that you're planning to make the output go to a
pipe which is then read by the same process? That is likely to
deadlock: the output module can fill up the pipe buffer and
block. Blocking goes on forever, because the GUI will never get
a chance to read from it as it's in the same process.
Or we'd need to introduce some kind of concurrency. Either through
multi-threading !! or by scheduling the output driver to give up
control if it would otherwise block. I think one of these solutions
would be desireable in the long term; I wouldn't want the gui to
'hang' for 10 seconds because somebody executed a procedure which
caused the output driver to write 100MB of text.
But you're right. For now, perhaps it's better not to go down that
path.
J'
--
PGP Public key ID: 1024D/2DE827B3
fingerprint = 8797 A26D 0854 2EAB 0285 A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.
signature.asc
Description: Digital signature
- bug release tags, Ben Pfaff, 2007/07/25
- Re: bug release tags, John Darrington, 2007/07/25
- Re: bug release tags, Ben Pfaff, 2007/07/25
- Re: bug release tags, Jason Stover, 2007/07/25
- Re: bug release tags, John Darrington, 2007/07/25
- Re: bug release tags, Ben Pfaff, 2007/07/25
- Re: bug release tags, John Darrington, 2007/07/27
- Re: bug release tags, John Darrington, 2007/07/29
- Re: bug release tags, John Darrington, 2007/07/31
- Re: bug release tags, Ben Pfaff, 2007/07/31
- Re: bug release tags,
John Darrington <=
- Re: bug release tags, Ben Pfaff, 2007/07/31