mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-28 23:50:10 +01:00
core: fix setting non-blocking FD in nm_utils_spawn_helper()
Fixes:6ac21ba916('core: add infrastructure for spawning a helper process') (cherry picked from commitfd123315e5)
This commit is contained in:
parent
07efcc124f
commit
63eef57716
1 changed files with 2 additions and 2 deletions
|
|
@ -5154,9 +5154,9 @@ nm_utils_spawn_helper(const char *const *args,
|
|||
g_source_attach(info->timeout_source, g_main_context_get_thread_default());
|
||||
|
||||
/* Set file descriptors as non-blocking */
|
||||
fd_flags = fcntl(info->child_stdin, F_GETFD, 0);
|
||||
fd_flags = fcntl(info->child_stdin, F_GETFL, 0);
|
||||
fcntl(info->child_stdin, F_SETFL, fd_flags | O_NONBLOCK);
|
||||
fd_flags = fcntl(info->child_stdout, F_GETFD, 0);
|
||||
fd_flags = fcntl(info->child_stdout, F_GETFL, 0);
|
||||
fcntl(info->child_stdout, F_SETFL, fd_flags | O_NONBLOCK);
|
||||
fd_flags = fcntl(info->child_stderr, F_GETFD, 0);
|
||||
fcntl(info->child_stderr, F_SETFL, fd_flags | O_NONBLOCK);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue