GNU bug report logs - #2653
shell terminates when cmd sets stdout to non-blocking

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Warren Harris <warren <at> metaweb.com>; merged with #2602; dated Fri, 13 Mar 2009 00:50:03 UTC; Maintainer for emacs is bug-gnu-emacs <at> gnu.org.
Merged 2602 2653. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> emacsbugs.donarmstrong.com. Full text available.

Message received at submit <at> emacsbugs.donarmstrong.com:


Received: (at submit) by emacsbugs.donarmstrong.com; 13 Mar 2009 00:44:07 +0000
From warren <at> metaweb.com Thu Mar 12 17:44:07 2009
X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02
	(2008-06-10) on rzlab.ucr.edu
X-Spam-Level: 
X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available.
	hammytokens:Tokens not available.
X-Spam-Status: No, score=0.0 required=4.0 tests=none autolearn=ham
	version=3.2.5-bugs.debian.org_2005_01_02
Received: from lists.gnu.org (lists.gnu.org [199.232.76.165])
	by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2D0i4n9022610
	for <submit <at> emacsbugs.donarmstrong.com>; Thu, 12 Mar 2009 17:44:05 -0700
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)
	id 1LhvVM-0001K1-7o
	for bug-gnu-emacs <at> gnu.org; Thu, 12 Mar 2009 20:44:04 -0400
Received: from [199.232.76.173] (port=38666 helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.43)
	id 1LhvVL-0001Jt-Sz
	for bug-gnu-emacs <at> gnu.org; Thu, 12 Mar 2009 20:44:03 -0400
Received: from mx01.metaweb.com ([208.68.111.25]:38412)
	by monty-python.gnu.org with smtp (Exim 4.60)
	(envelope-from <warren <at> metaweb.com>)
	id 1LhvVL-0001QW-Fg
	for bug-gnu-emacs <at> gnu.org; Thu, 12 Mar 2009 20:44:03 -0400
Received: from zimbra01.corp.sjc1.metaweb.com (localhost [127.0.0.1])
	by mx01.metaweb.com (Spam Firewall) with ESMTP id 64EB311A0F3
	for <bug-gnu-emacs <at> gnu.org>; Thu, 12 Mar 2009 17:43:48 -0700 (PDT)
Received: from zimbra01.corp.sjc1.metaweb.com (zimbra01.corp.sjc1.metaweb.com [172.29.253.13]) by mx01.metaweb.com with ESMTP id qf7x7mtn1QAtog89 for <bug-gnu-emacs <at> gnu.org>; Thu, 12 Mar 2009 17:43:48 -0700 (PDT)
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zimbra01.corp.sjc1.metaweb.com (Postfix) with ESMTP id 41C30160C07A
	for <bug-gnu-emacs <at> gnu.org>; Thu, 12 Mar 2009 17:43:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at 
Received: from zimbra01.corp.sjc1.metaweb.com ([127.0.0.1])
	by localhost (zimbra01.corp.sjc1.metaweb.com [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id EEA+zNxueJRN for <bug-gnu-emacs <at> gnu.org>;
	Thu, 12 Mar 2009 17:43:48 -0700 (PDT)
Received: from timesink.corp.631h.metaweb.com (timesink.corp.631h.metaweb.com [172.31.20.32])
	by zimbra01.corp.sjc1.metaweb.com (Postfix) with ESMTP id 140C0160C05A
	for <bug-gnu-emacs <at> gnu.org>; Thu, 12 Mar 2009 17:43:48 -0700 (PDT)
Message-Id: <4848E3AC-1F6F-4D1B-A12C-A60AAB0080E2 <at> metaweb.com>
From: Warren Harris <warren <at> metaweb.com>
To: bug-gnu-emacs <at> gnu.org
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v930.3)
Subject: shell terminates when cmd sets stdout to non-blocking
Date: Thu, 12 Mar 2009 17:43:47 -0700
X-Mailer: Apple Mail (2.930.3)
X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized.

If emacs runs an inferior sub-shell (e.g. bash), and a shell command  
is executed which sets its stdout to non-blocking, the inferior shell  
will terminate when the command terminates. On termination, the  
message is given:

Process shell finished

This happens regardless of the exit status of the command. The  
solution seems to be to rewrite the program to set its stdout to be  
blocking before exiting.







Acknowledgement sent to Warren Harris <warren <at> metaweb.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text available.
Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#2653; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 20 Sep 2011 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.