Please check the manual page poll(2).