mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
Bug 538119 – glib's mainloop leaks a pipe to sub-processes
* glib/gmain.c (g_main_context_init_pipe): Don't leak the pipes to child processes. Patch by Thiago Macieira. svn path=/branches/glib-2-16/; revision=7116
This commit is contained in:
parent
695a864c2a
commit
faf349a2f9
@ -1,3 +1,12 @@
|
||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Backport from trunk:
|
||||
|
||||
Bug 538119 – glib's mainloop leaks a pipe to sub-processes
|
||||
|
||||
* glib/gmain.c (g_main_context_init_pipe): Don't leak the
|
||||
pipes to child processes. Patch by Thiago Macieira.
|
||||
|
||||
2008-06-30 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
Backport from trunk:
|
||||
|
@ -629,6 +629,9 @@ g_main_context_init_pipe (GMainContext *context)
|
||||
g_error ("Cannot create pipe main loop wake-up: %s\n",
|
||||
g_strerror (errno));
|
||||
|
||||
fcntl (context->wake_up_pipe[0], F_SETFD, FD_CLOEXEC);
|
||||
fcntl (context->wake_up_pipe[1], F_SETFD, FD_CLOEXEC);
|
||||
|
||||
context->wake_up_rec.fd = context->wake_up_pipe[0];
|
||||
context->wake_up_rec.events = G_IO_IN;
|
||||
# else
|
||||
|
Loading…
x
Reference in New Issue
Block a user