Use O_CLOEXEC instead of FD_CLOEXEC

GLib is complaining vocally about this.
This commit is contained in:
Matthias Clasen 2023-11-27 17:47:53 -05:00
parent 606d150e0b
commit 6961c1fe4a
4 changed files with 4 additions and 4 deletions

View File

@ -243,7 +243,7 @@ gdk_wayland_clipboard_read_async (GdkClipboard *clipboard,
g_task_set_task_data (task, (gpointer) mime_type, NULL); 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); g_task_return_error (task, error);
return; return;

View File

@ -208,7 +208,7 @@ gdk_wayland_drop_read_async (GdkDrop *drop,
g_task_set_task_data (task, (gpointer) mime_type, NULL); 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); g_task_return_error (task, error);
return; return;

View File

@ -342,7 +342,7 @@ gdk_wayland_primary_read_async (GdkClipboard *clipboard,
g_task_set_task_data (task, (gpointer) mime_type, NULL); 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); g_task_return_error (task, error);
return; return;

View File

@ -1562,7 +1562,7 @@ gtk_print_dialog_print (GtkPrintDialog *self,
ptd->token = setup ? setup->token : 0; ptd->token = setup ? setup->token : 0;
g_task_set_task_data (task, ptd, print_task_data_free); 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_task_return_error (task, error);
g_object_unref (task); g_object_unref (task);