From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Colin Walters Newsgroups: gmane.emacs.bugs Subject: bug#14474: 24.3.50; Zombie subprocesses (again) Date: Mon, 27 May 2013 08:46:20 -0400 Message-ID: <1369658780.23869.57.camel@localhost> References: <87ppwevddb.fsf@web.de> <51A24870.8020909@cs.ucla.edu> <87fvx93818.fsf@web.de> <51A2B88F.1090404@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 1369679175 3145 80.91.229.3 (27 May 2013 18:26:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 May 2013 18:26:15 +0000 (UTC) Cc: Michael Heerdegen , 14474@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 27 20:26: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 1Uh27b-0003tk-L1 for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2013 20:26:15 +0200 Original-Received: from localhost ([::1]:48493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh27b-0004uO-8U for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 May 2013 14:26:15 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh27R-0004s9-59 for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 14:26:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uh27G-000634-Ve for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 14:26:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uh27G-00062t-C9 for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 14:25:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Uh28Q-0003gF-V9 for bug-gnu-emacs@gnu.org; Mon, 27 May 2013 14:27:07 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Colin Walters Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 May 2013 18:27:06 +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.136967919314058 (code B ref 14474); Mon, 27 May 2013 18:27:06 +0000 Original-Received: (at 14474) by debbugs.gnu.org; 27 May 2013 18:26:33 +0000 Original-Received: from localhost ([127.0.0.1]:36756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Uh27r-0003eZ-98 for submit@debbugs.gnu.org; Mon, 27 May 2013 14:26:32 -0400 Original-Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51482) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Ugwpq-00085g-L9 for 14474@debbugs.gnu.org; Mon, 27 May 2013 08:47:35 -0400 Original-Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 93CA021774; Mon, 27 May 2013 08:46:21 -0400 (EDT) Original-Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Mon, 27 May 2013 08:46:21 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version :content-transfer-encoding; s=smtpout; bh=MbI2afWm1RtTBuMY3Y2IBI S9iCQ=; b=AMCrpiZ08Bw6nkHvndvXIOU/SeLUFiXY9qYal3yZDCUxQXvpEHWa9T yNEUDRAMlVKFIz+8/e80KFI4fO/qvxILEIsOrzrxuUt3m3XHlHoK8PdlZuN8hDAw ud2Bb1zPhgI49zKpfqfS3JoPmwT5dBtSMRg2clxVeEC1MmgpYdCCg= X-Sasl-enc: If+G4EIr6rfg9A9jfglAe5TsNdSxA4p6cY0U17ASKUiw 1369658781 Original-Received: from [192.168.1.3] (unknown [66.31.18.51]) by mail.messagingengine.com (Postfix) with ESMTPA id 2A909C8000A; Mon, 27 May 2013 08:46:21 -0400 (EDT) In-Reply-To: <51A2B88F.1090404@cs.ucla.edu> X-Mailer: Evolution 2.28.3 (2.28.3-30.el6) X-Mailman-Approved-At: Mon, 27 May 2013 14:26:28 -0400 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:74603 Archived-At: On Sun, 2013-05-26 at 18:36 -0700, Paul Eggert wrote: > but that's already the case in the Emacs trunk. > Is there another limitation that we > didn't know about, a limitation that says Emacs can't > have signal handlers either? Basically it's going to be very hard over time to avoid codepaths in the GTK+ stack that don't call g_spawn_*() indirectly, thus installing a SIGCHLD handler, particuarly due to the pluggable nature of Gio. > I'll CC: this to Colin Walters since he seemed to have > a good handle on the situation from the glib point of view; see > . Yeah, I don't think much has changed since then. > One possibility is to see if we can get Emacs to use > glib's child watcher. That'd be best obviously. > But that's a bit of a delicate balance, > since Emacs must work even when gtk is absent, Bear in mind that GLib is usable without gtk. Even if you don't have an X connection, if the GLib mainloop is linked into the process, I don't see a reason not to use it. > and it may need > to hand off from its own watcher to glib's watcher, and processes > shouldn't get lost during the handoff. Would Emacs really be spawning processes before initializing the frontend? > A simpler but hacky workaround is to not use the graphical interface if > DBUS_SESSION_BUS_ADDRESS is unset. I don't see a real problem with that as a temporary thing. Anyways, if there is something I can do GLib side, let me know.