summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-04-03 19:11:54 +0200
committerThomas Haller <thaller@redhat.com>2023-04-04 08:43:20 +0200
commitd1f7e439c6103f3e635beb221718eb09241c6fdb (patch)
tree094dd575d20f7734db29e38680b4dded3b078ac9
parentfd123315e548cb4879bf4b3820d8a9d91d06674e (diff)
downloadNetworkManager-d1f7e439c6103f3e635beb221718eb09241c6fdb.tar.gz
core: fix setting non-blocking stderr in nm_utils_spawn_helper()
Fixes: d65702803cb0 ('core: print stderr from nm-daemon-helper')
-rw-r--r--src/core/nm-core-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/nm-core-utils.c b/src/core/nm-core-utils.c
index 410fb2bc29..175a1652e2 100644
--- a/src/core/nm-core-utils.c
+++ b/src/core/nm-core-utils.c
@@ -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 */