mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
ad24b679d2
commit
a7241974ce
4 changed files with 4 additions and 29 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue