diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-03-29 15:21:00 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2022-05-03 15:17:56 +0400 |
commit | a7241974ceca3a783ab010f3fd1926fa42346a34 (patch) | |
tree | c34b1323dd4a96d92131dc9caf16c89c04ee5556 /util/event_notifier-posix.c | |
parent | ad24b679d215c2f8eaab6125a68e864c2a5d7dde (diff) |
Replace qemu_pipe() with g_unix_open_pipe()
GLib g_unix_open_pipe() is essentially like qemu_pipe(), available since
2.30.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'util/event_notifier-posix.c')
-rw-r--r-- | util/event_notifier-posix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/event_notifier-posix.c b/util/event_notifier-posix.c index 2aa14eabb3..76420c5b56 100644 --- a/util/event_notifier-posix.c +++ b/util/event_notifier-posix.c @@ -49,7 +49,7 @@ int event_notifier_init(EventNotifier *e, int active) if (errno != ENOSYS) { return -errno; } - if (qemu_pipe(fds) < 0) { + if (!g_unix_open_pipe(fds, FD_CLOEXEC, NULL)) { return -errno; } if (!g_unix_set_fd_nonblocking(fds[0], true, NULL)) { |