Please check the manual page sigpending(2).