Please check the manual page sigwaitinfo(2).