core: fix setting non-blocking stderr in nm_utils_spawn_helper()

Fixes: d65702803c ('core: print stderr from nm-daemon-helper')
(cherry picked from commit d1f7e439c6)
This commit is contained in:
Thomas Haller 2023-04-03 19:11:54 +02:00 committed by Lubomir Rintel
parent 909c7994fb
commit 3364b8b804

View file

@ -5154,7 +5154,7 @@ nm_utils_spawn_helper(const char *const *args,
fcntl(info->child_stdin, F_SETFL, fd_flags | O_NONBLOCK);
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);
fd_flags = fcntl(info->child_stderr, F_GETFL, 0);
fcntl(info->child_stderr, F_SETFL, fd_flags | O_NONBLOCK);
/* Watch process stdin */