mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 15:03:39 +02:00
Mask all signals in GLib worker thread
Some code using GLib (gnome-keyring-daemon, for example) assumes that they can catch signals by masking them out in the main thread and calling sigwait() from a worker. The problem is that our new worker thread catches the signals before sigwait() has a chance and the default action occurs (typically resulting in program termination). If we mask all the signals in our worker, then this can't happen.
This commit is contained in:
@@ -467,6 +467,21 @@ Since: 2.14
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_DEPRECATED ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
|
||||
|
||||
<!-- ##### MACRO G_DEPRECATED_FOR ##### -->
|
||||
<para>
|
||||
|
||||
</para>
|
||||
|
||||
@f:
|
||||
|
||||
|
||||
<!-- ##### MACRO G_LIKELY ##### -->
|
||||
<para>
|
||||
Hints the compiler that the expression is likely to evaluate to a true
|
||||
|
Reference in New Issue
Block a user