mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 20:58:22 +00:00
poll: fix not returning EINTR on signal
This commit is contained in:
@@ -79,7 +79,8 @@ syscallret_t syscall_poll(context_t *, pollfd_t *fds, size_t nfds, int timeoutms
|
||||
}
|
||||
}
|
||||
|
||||
ret.errno = usercopy_touser(fds, fdsbuff, fdsbuffsize);
|
||||
if (ret.errno == 0)
|
||||
ret.errno = usercopy_touser(fds, fdsbuff, fdsbuffsize);
|
||||
|
||||
poll_leave(&desc);
|
||||
poll_destroydesc(&desc);
|
||||
|
||||
Reference in New Issue
Block a user