From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#14297: 24.3.50; emacs subprocesses don't exit on "exit" Date: Mon, 13 May 2013 18:59:35 +0300 Message-ID: <8338tqan14.fsf@gnu.org> References: <87d2te3l09.fsf@gmail.com> <51906E5F.3070905@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1368460897 25805 80.91.229.3 (13 May 2013 16:01:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 16:01:37 +0000 (UTC) Cc: spinuvit@gmail.com, 14297@debbugs.gnu.org To: Paul Eggert Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 13 18:01:37 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 1UbvBw-0007nh-R2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 18:01:36 +0200 Original-Received: from localhost ([::1]:58119 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvBv-0003bf-Qj for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 12:01:35 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvAz-00025b-Oh for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 12:00:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbvAx-00056l-0J for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 12:00:37 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:34693) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbvAw-00056d-SD for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 12:00:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbvBN-0007Z4-RT for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 12:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2013 16:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14297 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 14297-submit@debbugs.gnu.org id=B14297.136846084529008 (code B ref 14297); Mon, 13 May 2013 16:01:01 +0000 Original-Received: (at 14297) by debbugs.gnu.org; 13 May 2013 16:00:45 +0000 Original-Received: from localhost ([127.0.0.1]:38802 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbvB6-0007Xi-1Q for submit@debbugs.gnu.org; Mon, 13 May 2013 12:00:44 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:39856) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbvB2-0007XC-Cz for 14297@debbugs.gnu.org; Mon, 13 May 2013 12:00:42 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MMQ00D00UT7TP00@a-mtaout22.012.net.il> for 14297@debbugs.gnu.org; Mon, 13 May 2013 18:59:45 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MMQ00DOIV3JKQ90@a-mtaout22.012.net.il>; Mon, 13 May 2013 18:59:45 +0300 (IDT) In-reply-to: <51906E5F.3070905@cs.ucla.edu> X-012-Sender: halo1@inter.net.il 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:74206 Archived-At: > Date: Sun, 12 May 2013 21:38:55 -0700 > From: Paul Eggert > Cc: 14297@debbugs.gnu.org > > > It's pretty non intuitive, how failure of > > (process-live-p proc) is connected to window toolkit? > > The problem is that Gtk creates subprocesses in its own thread, > and the Emacs main thread (until recently) mistakenly reaped these > subprocesses with waitpid (-1, ...). See: > > https://bugzilla.gnome.org/show_bug.cgi?id=687075#c2 > http://bugs.gnu.org/8855 > http://bugs.gnu.org/9627 > http://bugs.gnu.org/12980 > > Fixing this Emacs bug required changing how Emacs waited for children; > it no longer does a waitpid (-1, ...), but always does a waitpid > for children that it knows about. > > Given the discussion in > > it appears that the bug is in something other than Emacs proper, > and affects other programs. My reading of that discussion is that the problems were observed in Emacs 23, but not in "emacs-snapshot" (which probably means the trunk, since that was written 2 weeks ago). By contrast, Vitalie here says the opposite: that the problem exists on the trunk, but not on the emacs-24 branch. So I'm not sure this is the same problem.