bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: gnuplot vs. emacs' compile command


From: Hans-Bernhard Broeker
Subject: Re: gnuplot vs. emacs' compile command
Date: Mon, 19 May 2003 17:26:36 +0200 (MET DST)

On Mon, 19 May 2003, Richard Stallman wrote:

>    emacs -eval '(shell-command "sh gpaction")' # plots, but then hangs
>
> This uses call-process.  I think that waits until the output pipe
> returns EOF, which I think requires it to get closed by all writers.
> This might be a bug, but I am not sure it is a bug.
>
> If gnuplot were to give the subprocess a different standard output
> descriptor, Emacs would not wait for it to terminate.

Yep, gnuplot_x11 is keeping its stderr open (stdin and stdout are
redirected by gnuplot), which remains to be the stderr of gnuplot
itself, and thus the one emacs passed to the shell, or directly to
gnuplot.

I'll see if it helps to have gnuplot_x11 fclose(stderr) as it
enters the -persist state.

-- 
Hans-Bernhard Broeker (address@hidden)
Even if all the snow were burnt, ashes would remain.





reply via email to

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