mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
gmain: remove unix signal watch if its GSourceFunc returns FALSE
g_unix_signal_watch_dispatch() was ignore the callback's return value. Fix that. https://bugzilla.gnome.org/show_bug.cgi?id=682560
This commit is contained in:
parent
99c7c951d9
commit
2427378223
@ -4499,6 +4499,7 @@ g_unix_signal_watch_dispatch (GSource *source,
|
||||
gpointer user_data)
|
||||
{
|
||||
GUnixSignalWatchSource *unix_signal_source;
|
||||
gboolean again;
|
||||
|
||||
unix_signal_source = (GUnixSignalWatchSource *) source;
|
||||
|
||||
@ -4509,11 +4510,11 @@ g_unix_signal_watch_dispatch (GSource *source,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
(callback) (user_data);
|
||||
again = (callback) (user_data);
|
||||
|
||||
unix_signal_source->pending = FALSE;
|
||||
|
||||
return TRUE;
|
||||
return again;
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user