GNU bug report logs -
#56967
29.0.50; Frequent crashes under Wayland
Previous Next
Full log
Message #44 received at 56967 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: bjorn.bidar <at> thaodan.de, 56967 <at> debbugs.gnu.org
> Date: Fri, 05 Aug 2022 14:28:21 +0800
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > Does _exit in glibc provide any hooks that we could use?
>
> Not that I know of.
How about asking the glibc developers to provide one, citing this very
use case as the real-life problem to solve? Specifically, what I'd
like to do in that hook is to shut down Emacs in an orderly manner, so
that the user won't lose all his/her edits.
> > Or maybe GTK has some knob to let it call us before it calls _exit?
>
> Nope, GTK simply does this:
>
> if (wl_display_flush (display->wl_display) < 0)
> {
> g_message ("Error flushing display: %s", g_strerror (errno));
> _exit (1);
> }
>
> if (for example) wl_display_flush, a low-level Wayland interface, fails
> from an IO error.
Amazing. Where did those people learn to develop friendly, extensible
libraries? in what tyrannical culture?
This bug report was last modified 2 years and 184 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.