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

Fixes: d65702803c ('core: print stderr from nm-daemon-helper')
This commit is contained in:
Thomas Haller 2023-04-03 19:11:54 +02:00
parent fd123315e5
commit d1f7e439c6
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -5167,7 +5167,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 */