mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 21:51:08 +00:00
Use O_CLOEXEC instead of FD_CLOEXEC
GLib is complaining vocally about this.
This commit is contained in:
parent
606d150e0b
commit
6961c1fe4a
@ -243,7 +243,7 @@ gdk_wayland_clipboard_read_async (GdkClipboard *clipboard,
|
||||
|
||||
g_task_set_task_data (task, (gpointer) mime_type, NULL);
|
||||
|
||||
if (!g_unix_open_pipe (pipe_fd, FD_CLOEXEC, &error))
|
||||
if (!g_unix_open_pipe (pipe_fd, O_CLOEXEC, &error))
|
||||
{
|
||||
g_task_return_error (task, error);
|
||||
return;
|
||||
|
@ -208,7 +208,7 @@ gdk_wayland_drop_read_async (GdkDrop *drop,
|
||||
|
||||
g_task_set_task_data (task, (gpointer) mime_type, NULL);
|
||||
|
||||
if (!g_unix_open_pipe (pipe_fd, FD_CLOEXEC, &error))
|
||||
if (!g_unix_open_pipe (pipe_fd, O_CLOEXEC, &error))
|
||||
{
|
||||
g_task_return_error (task, error);
|
||||
return;
|
||||
|
@ -342,7 +342,7 @@ gdk_wayland_primary_read_async (GdkClipboard *clipboard,
|
||||
|
||||
g_task_set_task_data (task, (gpointer) mime_type, NULL);
|
||||
|
||||
if (!g_unix_open_pipe (pipe_fd, FD_CLOEXEC, &error))
|
||||
if (!g_unix_open_pipe (pipe_fd, O_CLOEXEC, &error))
|
||||
{
|
||||
g_task_return_error (task, error);
|
||||
return;
|
||||
|
@ -1562,7 +1562,7 @@ gtk_print_dialog_print (GtkPrintDialog *self,
|
||||
ptd->token = setup ? setup->token : 0;
|
||||
g_task_set_task_data (task, ptd, print_task_data_free);
|
||||
|
||||
if (!g_unix_open_pipe (ptd->fds, FD_CLOEXEC, &error))
|
||||
if (!g_unix_open_pipe (ptd->fds, O_CLOEXEC, &error))
|
||||
{
|
||||
g_task_return_error (task, error);
|
||||
g_object_unref (task);
|
||||
|
Loading…
Reference in New Issue
Block a user