From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: FAQ: gnuplot vs. emacs' compile command Date: 12 Feb 2004 14:34:11 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <871xz7jrk0.fsf@jidanni.org> <87d6iqhz62.fsf@jidanni.org> <87addrv76t.fsf@jidanni.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1076689564 23122 80.91.224.253 (13 Feb 2004 16:26:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2004 16:26:04 +0000 (UTC) Cc: Dan Jacobson , arafune@debian.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Feb 13 17:25:52 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Arg8W-00047h-00 for ; Fri, 13 Feb 2004 17:25:52 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Arg8W-0006Uf-00 for ; Fri, 13 Feb 2004 17:25:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Arg5H-0002tx-Dc for emacs-devel@quimby.gnus.org; Fri, 13 Feb 2004 11:22:31 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Arg3k-0002cR-MH for emacs-devel@gnu.org; Fri, 13 Feb 2004 11:20:56 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1Arg3E-0002Ts-1c for emacs-devel@gnu.org; Fri, 13 Feb 2004 11:20:55 -0500 Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Arg3D-0002Th-Hv for emacs-devel@gnu.org; Fri, 13 Feb 2004 11:20:23 -0500 Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 1C5C320FC2; Thu, 12 Feb 2004 14:34:12 -0500 (EST) Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848) id 51CAC8C70D; Thu, 12 Feb 2004 14:34:11 -0500 (EST) Original-To: storm@cua.dk (Kim F. Storm) In-Reply-To: Original-Lines: 65 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-1.524, requis 5, BAYES_01 -1.52) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:19915 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:19915 > Did anyone actually look at this bug back in May ? > FYI, I have included the text at the referenced link here. What is the bug exactly? My understanding is of the problem: when Emacs exits, gnuplot is killed because its stdout is connected to Emacs (i.e. it receives a SIGPIPE or SIGHUP or somesuch). Stefan > Dan Jacobson writes: >> Fellas, the gnuplot team may have found ugly emacs process bugs, see >> <...> >> > : Dan Jacobson wrote: > : > : > Using emacs -eval '(compile "make")' > : > With: echo "plot 'file';pause -1"|gnuplot -persist > : > just flashes the graph for a split second. > : > : So let's get into dissecting this further. The first candidate to > : remove is 'make'. It doesn't really do anything useful in this whole > : setup, so we might as well get rid of it. Let's replace it by a shell > : script doing the same things. And while at it, let's get rid of the > : separate data file, too: > : > : --- gpaction --- > : gnuplot -persist < : plot '-' > : 1 1 > : 2 2 > : e > : EOS > : ---- end --- > : > : sh gpaction # does the plot and returns > : emacs -eval '(compile "sh gpaction")' # doesn't plot, but returns > : emacs -eval '(shell-command "sh gpaction")' # plot, but no return > : > : For the latter, emacs is unresponsive --- it's obviously waiting for > : something to happen, which doesn't. Only after you terminate the > : gnuplot graph window (key 'q' into it), or press Ctrl-G in emacs to > : forcibly break out of the wait loop, it will continue. > : > : During that pause, look at the output from 'ps jx' and you'll find > : that gnuplot_x11 is an orphan --- i.e. it's the only surviving process > : in its process group. In "shell-command", emacs apparently doesn't > : kill it, whereas in "compile", it probably does. > : -- > : Hans-Bernhard Broeker (broeker@physik.rwth-aachen.de) > : Even if all the snow were burnt, ashes would remain. > -- > Kim F. Storm http://www.cua.dk > _______________________________________________ > Emacs-devel mailing list > Emacs-devel@gnu.org > http://mail.gnu.org/mailman/listinfo/emacs-devel