kqueue: fix a potential deadlock
authorAntoine Jacoutot <ajacoutot@gnome.org>
Thu, 26 Dec 2013 10:03:45 +0000 (11:03 +0100)
committerAntoine Jacoutot <ajacoutot@gnome.org>
Thu, 26 Dec 2013 18:57:44 +0000 (19:57 +0100)
commitfb21c8eaab64301591a0e179a42ef25cbd793a6e
treeb088eb98785d375f1e340d24b556a0752c8e2f1f
parentf3c9b17d3c8984fa7281bd6c849aa6a0170b54de
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
gio/kqueue/kqueue-missing.c