mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-03 01:36:17 +01:00
kqueue: fix a potential deadlock
In case an object is already monitored, we lock then return without unlocking it which can then result in a self deadlock. So properly unlock before returning. https://bugzilla.gnome.org/show_bug.cgi?id=721074
This commit is contained in:
parent
f3c9b17d3c
commit
fb21c8eaab
@ -68,6 +68,7 @@ _km_add_missing (kqueue_sub *sub)
|
|||||||
if (g_slist_find (missing_subs_list, sub))
|
if (g_slist_find (missing_subs_list, sub))
|
||||||
{
|
{
|
||||||
KM_W ("asked to add %s to missing list but it's already on the list!\n", sub->filename);
|
KM_W ("asked to add %s to missing list but it's already on the list!\n", sub->filename);
|
||||||
|
G_UNLOCK (missing_lock);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user