You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to strace, time.sleep() is implemented as a call to select; the normal behavior is this:
select(0, NULL, NULL, NULL, {3, 0}) = 0 (Timeout)
however, with real_time=True, I get this:
select(0, NULL, NULL, NULL, {3, 0}) = ? ERESTARTNOHAND (To be restarted if no handler)
I think that what happens is that the syscall is interrupted because the TIMER signal fired; CPython is not prepared to handle this case, and so it immediately exit the sleep(). However, I am not sure why it happens only in real_time mode.
Activity