Skip to content

Commit 8e9d249

Browse files
authored
Merge pull request #42 from lrowe/syscall-epoll-pwait2
Use syscall wrapper for epoll_pwait2 since RHEL9 has new enough kernel but not glibc
2 parents 06e8214 + 40b72dd commit 8e9d249

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lib/tinykvm/linux/system_calls.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2529,7 +2529,9 @@ void Machine::setup_linux_system_calls(bool unsafe_syscalls)
25292529
.tv_sec = 0,
25302530
.tv_nsec = 25000000,
25312531
};
2532-
result = epoll_pwait2(epollfd, guest_events.data(), maxevents, &ts, nullptr);
2532+
// Use syscall wrapper since RHEL9 has new enough kernel but not glibc
2533+
result = syscall(SYS_epoll_pwait2, epollfd, guest_events.data(),
2534+
maxevents, &ts, nullptr);
25332535
}
25342536
else
25352537
{

0 commit comments

Comments
 (0)