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
_______________________________________________ pspp-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/pspp-dev
