mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-26 12:12:10 +01:00
Merge branch 'wip/chergert/fix-2708' into 'main'
gmain: close pidfd when finalizing GChildWatchSource Closes #2708 See merge request GNOME/glib!2847
This commit is contained in:
commit
ab189ecfed
@ -5804,7 +5804,11 @@ g_child_watch_finalize (GSource *source)
|
||||
GChildWatchSource *child_watch_source = (GChildWatchSource *) source;
|
||||
|
||||
if (child_watch_source->using_pidfd)
|
||||
return;
|
||||
{
|
||||
if (child_watch_source->poll.fd >= 0)
|
||||
close (child_watch_source->poll.fd);
|
||||
return;
|
||||
}
|
||||
|
||||
G_LOCK (unix_signal_lock);
|
||||
unix_child_watches = g_slist_remove (unix_child_watches, source);
|
||||
|
Loading…
x
Reference in New Issue
Block a user