mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
Fix the mapping test in continuous
It turns out that due to a recent gdm change, the inherited signal mask has SIGUSR1 blocked - which is bad news for tests using SIGUSR1. Fix the test by explicitly checking the signal mask before using SIGUSR1.
This commit is contained in:
parent
79f930f6dc
commit
367dbdce36
@ -285,6 +285,17 @@ main (int argc,
|
||||
char *argv[])
|
||||
{
|
||||
int ret;
|
||||
#ifndef G_OS_WIN32
|
||||
sigset_t sig_mask, old_mask;
|
||||
|
||||
sigemptyset (&sig_mask);
|
||||
sigaddset (&sig_mask, SIGUSR1);
|
||||
if (sigprocmask (SIG_UNBLOCK, &sig_mask, &old_mask) == 0)
|
||||
{
|
||||
if (sigismember (&old_mask, SIGUSR1))
|
||||
g_message ("SIGUSR1 was blocked, unblocking it");
|
||||
}
|
||||
#endif
|
||||
|
||||
dir = g_get_current_dir ();
|
||||
filename = g_build_filename (dir, "maptest", NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user