From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#10217: 24.0.92; Error on quitting Emacs Date: Mon, 05 Dec 2011 22:53:18 -0500 Message-ID: References: <9hmxb6ielo.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1323143616 16898 80.91.229.12 (6 Dec 2011 03:53:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 6 Dec 2011 03:53:36 +0000 (UTC) Cc: 10217@debbugs.gnu.org, Nick Roberts To: =?UTF-8?Q?J=C3=BCrgen?= Bickert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 06 04:53:32 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RXm60-0007D8-4u for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Dec 2011 04:53:32 +0100 Original-Received: from localhost ([::1]:37958 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXm5z-0000J3-M5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Dec 2011 22:53:31 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:39148) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXm5w-0000Ip-I6 for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 22:53:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RXm5v-00032o-Cf for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 22:53:28 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RXm5v-00032e-4v for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 22:53:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RXm6U-0005IG-9C for bug-gnu-emacs@gnu.org; Mon, 05 Dec 2011 22:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Dec 2011 03:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10217 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10217-submit@debbugs.gnu.org id=B10217.132314363820337 (code B ref 10217); Tue, 06 Dec 2011 03:54:02 +0000 Original-Received: (at 10217) by debbugs.gnu.org; 6 Dec 2011 03:53:58 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXm6P-0005Hx-L9 for submit@debbugs.gnu.org; Mon, 05 Dec 2011 22:53:57 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RXm6N-0005Hq-3h for 10217@debbugs.gnu.org; Mon, 05 Dec 2011 22:53:56 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1RXm5m-0005XY-RD; Mon, 05 Dec 2011 22:53:18 -0500 X-Spook: TELINT Panama BRLO asset Ansar al-Islam HAMASMOIS MIT-LL X-Ran: e?Pvsl9(ZcA^8F%}LGAfwGW*\BU7)|Fw:n^q)fgr^C6"8LzOcpsx{]Q)eE':F{+Vj1,[jk X-Hue: green X-Attribution: GM In-Reply-To: <9hmxb6ielo.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 05 Dec 2011 22:05:55 -0500") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 05 Dec 2011 22:54:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:54733 Archived-At: Glenn Morris wrote: > Glenn Morris wrote: > >> By experiment, reverting the 2009-08-13 change to start_process_unwind >> ("Use pid == -2 to mean no process") seems to fix it, ie: > > But that can't be a complete solution, since it breaks gdb: The obvious thing, or some variation of it, seems to work: *** src/process.c 2011-11-28 08:20:58 +0000 --- src/process.c 2011-12-06 03:49:04 +0000 *************** *** 1521,1528 **** if (!PROCESSP (proc)) abort (); ! /* Was PROC started successfully? */ ! if (XPROCESS (proc)->pid == -1) remove_process (proc); return Qnil; --- 1521,1529 ---- if (!PROCESSP (proc)) abort (); ! /* Was PROC started successfully? ! -2 is used for a pty with no process, eg for gdb. */ ! if (XPROCESS (proc)->pid <= 0 && XPROCESS (proc)->pid != -2) remove_process (proc); return Qnil;