[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Redirecting standard output

From: Lars Magne Ingebrigtsen
Subject: Re: Redirecting standard output
Date: Sat, 23 Apr 2011 20:46:36 +0200
User-agent: Gnus/5.110016 (No Gnus v0.16) Emacs/24.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> You are in danger of reinventing the wait_reading_process_output
> wheel.  I'm not sure that kind of complexity is justified for such a
> marginal need, just for the sake of theoretical completeness and/or
> symmetry between stdout and stderr.  I think redirecting to a
> temporary file and then reading from there is more than adequate, and
> all but indistinguishable from the user POV (since we wait for the
> process to exit anyway).

Symmetry is nice, and temp file handling is always a hassle, so if it
can be avoided (without adding too much complexity), it seems worthwhile
to me...

>> Or are there gotchas when using select in Emacs?
> wait_reading_process_output already uses select, so adding another one
> is probably not a good idea.

Would `select'-ing on two separate collections of sockets cause any

(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]