How to interrupt epoll_pwait to catch signal

Viewed 2283

I would write a small test that shows me the difference between epoll_Wait and epoll_pwait() by catching any interrupted signal. can anyone provide me by a small code or any method to find that?

int epoll_pwait(int epfd, struct epoll_event *events,
                  int maxevents, int timeout,
                  const sigset_t *sigmask);
2 Answers
Related