From: Paul Eggert <eggert@cs.ucla.edu>
To: Vitalie Spinu <spinuvit@gmail.com>
Cc: 14297@debbugs.gnu.org
Subject: bug#14297: 24.3.50; emacs subprocesses don't exit on "exit"
Date: Sun, 12 May 2013 21:38:55 -0700 [thread overview]
Message-ID: <51906E5F.3070905@cs.ucla.edu> (raw)
In-Reply-To: <87d2te3l09.fsf@gmail.com>
> 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
<https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/1142213>
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.
next prev parent reply other threads:[~2013-05-13 4:38 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-28 12:19 bug#14297: 24.3.50; emacs subprocesses don't exit on "exit" Vitalie Spinu
2013-04-28 17:26 ` Glenn Morris
2013-04-28 18:30 ` Vitalie Spinu
2013-04-29 0:28 ` Glenn Morris
2013-04-29 0:34 ` Glenn Morris
2013-04-29 12:39 ` Vitalie Spinu
2013-04-29 15:49 ` Glenn Morris
2013-04-29 18:30 ` Glenn Morris
2013-04-29 18:41 ` Vitalie Spinu
2013-04-29 18:53 ` Glenn Morris
2013-04-29 19:10 ` Glenn Morris
2013-04-29 22:36 ` Vitalie Spinu
2013-04-29 23:42 ` Glenn Morris
2013-05-13 4:38 ` Paul Eggert [this message]
2013-05-13 15:59 ` Eli Zaretskii
2013-05-13 16:58 ` Paul Eggert
2013-05-13 17:41 ` Eli Zaretskii
2013-05-13 18:34 ` Paul Eggert
2015-12-25 23:45 ` Lars Ingebrigtsen
2015-12-26 0:19 ` Vitalie Spinu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=51906E5F.3070905@cs.ucla.edu \
--to=eggert@cs.ucla.edu \
--cc=14297@debbugs.gnu.org \
--cc=spinuvit@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.