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#14297: 24.3.50; emacs subprocesses don't exit on "exit" Date: Sun, 12 May 2013 21:38:55 -0700 Organization: UCLA Computer Science Department Message-ID: <51906E5F.3070905@cs.ucla.edu> References: <87d2te3l09.fsf@gmail.com> 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 1368419989 18288 80.91.229.3 (13 May 2013 04:39:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 May 2013 04:39:49 +0000 (UTC) Cc: 14297@debbugs.gnu.org To: Vitalie Spinu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 13 06:39:49 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 1UbkY4-0003o2-Ey for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 06:39:44 +0200 Original-Received: from localhost ([::1]:37102 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbkY4-00047s-46 for geb-bug-gnu-emacs@m.gmane.org; Mon, 13 May 2013 00:39:44 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbkY0-00047h-BK for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 00:39:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbkXy-0007oR-If for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 00:39:40 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33883) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbkXy-0007oI-G9 for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 00:39:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UbkYM-0003J0-41 for bug-gnu-emacs@gnu.org; Mon, 13 May 2013 00:40:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87d2te3l09.fsf@gmail.com> Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 May 2013 04:40:02 +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.136841996712598 (code B ref 14297); Mon, 13 May 2013 04:40:02 +0000 Original-Received: (at 14297) by debbugs.gnu.org; 13 May 2013 04:39:27 +0000 Original-Received: from localhost ([127.0.0.1]:37992 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbkXn-0003H8-Ao for submit@debbugs.gnu.org; Mon, 13 May 2013 00:39:27 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:33120) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UbkXj-0003Gi-BP for 14297@debbugs.gnu.org; Mon, 13 May 2013 00:39:24 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 4689139E8105; Sun, 12 May 2013 21:38:57 -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 sRVePPaBw-G4; Sun, 12 May 2013 21:38:55 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-71-189-154-249.lsanca.fios.verizon.net [71.189.154.249]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 8AFD939E8100; Sun, 12 May 2013 21:38:55 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130404 Thunderbird/17.0.5 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:74198 Archived-At: > 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. But if it is just an Emacs thing, perhaps you can reproduce it with 'strace -o trace.txt -f emacs' and then we could look at the trace of the part where Emacs tries to wait for its child process to finish.