From: Akira Kyle <akira@akirakyle.com>
To: Po Lu <luangruo@yahoo.com>
Cc: 53013@debbugs.gnu.org
Subject: bug#53013: 29.0.50; xwidget-webkit: SIGCHLD not being caught after xwidget-webkit buffer killed
Date: Tue, 4 Jan 2022 22:04:22 -0700 [thread overview]
Message-ID: <CAPWcbYG1ko62YdJ4kisZkV5-oHfMoim1i9uFyzWAFT+rGnzt+Q@mail.gmail.com> (raw)
In-Reply-To: <87r19m9a6v.fsf@yahoo.com>
On Tue, Jan 4, 2022 at 7:40 PM Po Lu <luangruo@yahoo.com> wrote:
>
> > I suspect that a call to catch_child_signal might also be needed in
> > kill_xwidget so emacs reinstalls its signal handler.
>
> Should be fixed now on master.
>
It looks like SIGCHLD is now being caught by emacs for me. Thanks!
> Making kill_xwidget call catch_child_signal wasn't enough, since GLib
> was resetting SIGCHLD inside a timer set by WebKitGTK and about a dozen
> other places as well, hence the very ugly (and unreliable) hack on
> master.
>
> It's a temporary solution that just motivated me to look at making Emacs
> use GLib for handling subprocesses.
Indeed GLib does appear to want to always own the signal handling and
I imagine the current hacks of trying to constantly reinstall the
handler are also potentially brittle solutions to the problem.
next prev parent reply other threads:[~2022-01-05 5:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-04 21:10 bug#53013: 29.0.50; xwidget-webkit: SIGCHLD not being caught after xwidget-webkit buffer killed Akira Kyle
2022-01-05 2:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-05 5:04 ` Akira Kyle [this message]
2022-01-07 4:21 ` Richard Stallman
2022-01-07 4:40 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-08 3:58 ` Richard Stallman
2022-01-08 4:37 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-01-09 3:54 ` Richard Stallman
2022-01-14 8:19 ` Lars Ingebrigtsen
2022-01-14 8:20 ` Lars Ingebrigtsen
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAPWcbYG1ko62YdJ4kisZkV5-oHfMoim1i9uFyzWAFT+rGnzt+Q@mail.gmail.com \
--to=akira@akirakyle.com \
--cc=53013@debbugs.gnu.org \
--cc=luangruo@yahoo.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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).