mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-22 09:57:52 +02:00
gspawn: Fix build on systems without O_CLOEXEC
Fixes typo introduced in 4afe429d7c
.
See https://gitlab.gnome.org/GNOME/glib/issues/1488
This commit is contained in:
committed by
Philip Withnall
parent
afbda14f2c
commit
b8a4754d59
@@ -1485,7 +1485,7 @@ do_posix_spawn (gchar **argv,
|
||||
parent_close_fds[num_parent_close_fds++] = write_null;
|
||||
|
||||
#ifndef HAVE_O_CLOEXEC
|
||||
fcntl (read_null, F_SETFD, FD_CLOEXEC);
|
||||
fcntl (write_null, F_SETFD, FD_CLOEXEC);
|
||||
#endif
|
||||
|
||||
r = posix_spawn_file_actions_adddup2 (&file_actions, write_null, 1);
|
||||
@@ -1509,7 +1509,7 @@ do_posix_spawn (gchar **argv,
|
||||
parent_close_fds[num_parent_close_fds++] = write_null;
|
||||
|
||||
#ifndef HAVE_O_CLOEXEC
|
||||
fcntl (read_null, F_SETFD, FD_CLOEXEC);
|
||||
fcntl (write_null, F_SETFD, FD_CLOEXEC);
|
||||
#endif
|
||||
|
||||
r = posix_spawn_file_actions_adddup2 (&file_actions, write_null, 2);
|
||||
|
Reference in New Issue
Block a user