From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#14474: 24.3.50; Zombie subprocesses (again) Date: Tue, 28 May 2013 09:56:06 -0700 Message-ID: <51A4E1A6.1000602@cs.ucla.edu> References: <87ppwevddb.fsf@web.de> <51A24870.8020909@cs.ucla.edu> <87fvx93818.fsf@web.de> <51A2B88F.1090404@cs.ucla.edu> <1369658780.23869.57.camel@localhost> <51A399B0.7070203@cs.ucla.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369760240 3691 80.91.229.3 (28 May 2013 16:57:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 28 May 2013 16:57:20 +0000 (UTC) Cc: 14474@debbugs.gnu.org To: Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue May 28 18:57:16 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UhNCy-0000oL-1Z for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 May 2013 18:57:12 +0200 Original-Received: from localhost ([::1]:37633 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhNCx-0001gE-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 May 2013 12:57:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhNCc-0001Bo-CX for bug-gnu-emacs@gnu.org; Tue, 28 May 2013 12:56:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UhNCW-0004to-7L for bug-gnu-emacs@gnu.org; Tue, 28 May 2013 12:56:50 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49396) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UhNCV-0004ti-TQ for bug-gnu-emacs@gnu.org; Tue, 28 May 2013 12:56:43 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UhNDm-0007Gp-Bj for bug-gnu-emacs@gnu.org; Tue, 28 May 2013 12:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 May 2013 16:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14474 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14474-submit@debbugs.gnu.org id=B14474.136976025827917 (code B ref 14474); Tue, 28 May 2013 16:58:02 +0000 Original-Received: (at 14474) by debbugs.gnu.org; 28 May 2013 16:57:38 +0000 Original-Received: from localhost ([127.0.0.1]:37754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhNDN-0007GE-7x for submit@debbugs.gnu.org; Tue, 28 May 2013 12:57:38 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:42024) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UhNDI-0007Ft-H7 for 14474@debbugs.gnu.org; Tue, 28 May 2013 12:57:34 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id D69A7A60005; Tue, 28 May 2013 09:56:07 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VlqTjuwkECpV; Tue, 28 May 2013 09:56:06 -0700 (PDT) Original-Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id B1B0A39E8106; Tue, 28 May 2013 09:56:06 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 In-Reply-To: <51A399B0.7070203@cs.ucla.edu> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:74616 Archived-At: In something like the following milder workaround was suggested instead. Michael, does this patch work around the bug for your test case? === modified file 'src/xterm.c' --- src/xterm.c 2013-05-09 14:49:56 +0000 +++ src/xterm.c 2013-05-28 16:34:44 +0000 @@ -9897,6 +9897,13 @@ x_term_init (Lisp_Object display_name, c XSetLocaleModifiers (""); + /* If D-Bus is not already configured, inhibit D-Bus autolaunch, + as autolaunch can mess up Emacs's SIGCHLD handler. + FIXME: Rewrite subprocess handlers to use glib's child watchers. + See Bug#14474. */ + if (! egetenv ("DBUS_SESSION_BUS_ADDRESS")) + xputenv ("DBUS_SESSION_BUS_ADDRESS="); + /* Emacs can only handle core input events, so make sure Gtk doesn't use Xinput or Xinput2 extensions. */ xputenv ("GDK_CORE_DEVICE_EVENTS=1");