i have the following piece of code:
try:
r_l, w_l, e_l = select.select([connection_fd], [], [], timeout_secs)
except select.error as (err_no, msg):
# get interrupted on select
While my program waits on this, if there is a signal (like SIGCHLD), the select is interrupted with a select.error . However, I am not sure if this works even if I have pending signals before entering select ? (the connection_fd socket is set to blocking).
Is there a possibility that there is a pending signal but select still does not get interrupted ?