Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

epoll_pwait syscall fails when sigmask argument is specified #2536

Open
anjalirai-intel opened this issue Jul 14, 2021 · 0 comments
Open

epoll_pwait syscall fails when sigmask argument is specified #2536

anjalirai-intel opened this issue Jul 14, 2021 · 0 comments

Comments

@anjalirai-intel
Copy link

anjalirai-intel commented Jul 14, 2021

Description of the problem

epoll_pwait unable to block signal when sigmask is specified
epoll_pwait(2) with sigmask argument allows the caller to safely wait until either a file descriptor becomes ready or the timeout expires.

Steps to reproduce

Run LTP Test epoll_pwait01

Expected results

epoll_pwait01 1 TPASS : epoll_pwait(sigmask) blocked signal
epoll_pwait01 0 TINFO : Child process returned TPASS
epoll_pwait01 2 TPASS : epoll_wait() failed as expected: TEST_ERRNO=EINTR(4): Interrupted system call
epoll_pwait01 0 TINFO : Child process returned TPASS

Actual results

Result:
epoll_pwait01 1 TFAIL : epoll_pwait() failed: TEST_ERRNO=EINTR(4): Interrupted system call
epoll_pwait01 0 TINFO : Child process returned TPASS
epoll_pwait01 2 TPASS : epoll_wait() failed as expected: TEST_ERRNO=EINTR(4): Interrupted system call
epoll_pwait01 0 TINFO : Child process returned TPASS

Labels

P0, bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants