From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.devel Subject: Re: Async commands in M-x compile Date: Thu, 01 Jul 2010 02:57:43 +0300 Message-ID: <87eifo9iq0.fsf@kobe.laptop> References: <87d3v9mpcq.fsf@gmail.com> <87k4pgkfkh.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1277947089 4225 80.91.229.12 (1 Jul 2010 01:18:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 1 Jul 2010 01:18:09 +0000 (UTC) Cc: Ken Raeburn , emacs-devel@gnu.org To: Antoine Levitt Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 01 03:18:06 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OU8Pi-0000yX-I2 for ged-emacs-devel@m.gmane.org; Thu, 01 Jul 2010 03:18:02 +0200 Original-Received: from localhost ([127.0.0.1]:58766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OU8Ph-0000jF-O2 for ged-emacs-devel@m.gmane.org; Wed, 30 Jun 2010 21:18:01 -0400 Original-Received: from [140.186.70.92] (port=43409 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OU8Pa-0000iS-3c for emacs-devel@gnu.org; Wed, 30 Jun 2010 21:17:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OU8PY-00030g-KW for emacs-devel@gnu.org; Wed, 30 Jun 2010 21:17:54 -0400 Original-Received: from 199.141.dyn-adsl.customer.ch.easynet.net ([217.8.199.141]:45871 helo=genesis-hsia.quadriga-www.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OU8PY-00030Q-EA for emacs-devel@gnu.org; Wed, 30 Jun 2010 21:17:52 -0400 Original-Received: from [192.168.12.11] (helo=kobe.laptop) by genesis-hsia.quadriga-www.com with esmtp (Exim 3.34 #1) id 1OU7i7-0003nR-00; Thu, 01 Jul 2010 02:32:59 +0200 Original-Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.4/8.14.4) with ESMTP id o610WwBN034730 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 1 Jul 2010 03:32:59 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Original-Received: (from keramida@localhost) by kobe.laptop (8.14.4/8.14.4/Submit) id o5UNvieI074264; Thu, 1 Jul 2010 02:57:44 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) In-Reply-To: <87k4pgkfkh.fsf@gmail.com> (Antoine Levitt's message of "Wed, 30 Jun 2010 11:58:06 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (berkeley-unix) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126569 Archived-At: On Wed, 30 Jun 2010 11:58:06 +0200, Antoine Levitt wrote: > Ken Raeburn writes: > >> On Jun 29, 2010, at 18:43, Antoine Levitt wrote: >>> Hello, >>> >>> Can someone explain to me why compile doesn't support asynchroneous >>> commands, and especially why it silently fails instead of displaying an >>> error message? I don't understand the mechanism involved here. >> >> The program run -- the shell -- exits (after having started some other >> program in background). The compilation command has finished, and >> exited with an exit status that indicates success. So, you're done. >> I could argue that it "succeeded", though apparently not at doing >> whatever it is that you think it should do. > > Yes, I would completely agree with that, except it _doesn't_ start the > program. Try running "xclock &" It may be starting the program and killing it too fast, e.g. because the parent shell reaps its child processes before it exits. Can you try running a "nohup sh foo.sh" script that spawns the echo redirection to see if this is indeed the case?