From 5b0badc21596b5763d5fe59e78f97ded6212d6b2 Mon Sep 17 00:00:00 2001 From: Vestral <16190165+Vestrel@users.noreply.github.com> Date: Sat, 28 May 2022 09:57:06 +0900 Subject: [PATCH] sys_rsxaudio: timer fix --- rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp b/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp index e4c33239a1..38dc8d4e49 100644 --- a/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_rsxaudio.cpp @@ -2093,7 +2093,7 @@ rsxaudio_periodic_tmr::wait_result rsxaudio_periodic_tmr::wait(const std::functi { wait_status = epoll_wait(epoll_fd, event, obj_wait_cnt, -1); } - while (wait_status == -EINTR); + while (wait_status == -1 && errno == EINTR); if (wait_status < 0 || wait_status > obj_wait_cnt) { @@ -2121,7 +2121,7 @@ rsxaudio_periodic_tmr::wait_result rsxaudio_periodic_tmr::wait(const std::functi { wait_status = kevent(kq, nullptr, 0, event, obj_wait_cnt, nullptr); } - while (wait_status == -EINTR); + while (wait_status == -1 && errno == EINTR); if (wait_status < 0 || wait_status > obj_wait_cnt) {