Vetoshkin Nikita <nikita.vetosh...@gmail.com> added the comment: Here's what strace on FAIL shows (print "in alarm_handler" added)
alarm(2) = 0 poll([{fd=3, events=POLLIN}], 1, 5000) = ? ERESTART_RESTARTBLOCK (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xffffffff) = -1 EINTR (Interrupted system call) accept4(3, 0x7fffa94c4780, [16], 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}], 1, 2999) = 0 (Timeout) accept4(3, 0x7fffa94c4780, [16], 0) = -1 EAGAIN (Resource temporarily unavailable) write(1, "in alarm_handler\n", 17) = 17 alarm(0) = 0 Here's on OK: alarm(2) = 0 poll([{fd=3, events=POLLIN}], 1, 5000) = ? ERESTART_RESTARTBLOCK (To be restarted) --- SIGALRM (Alarm clock) @ 0 (0) --- rt_sigreturn(0xffffffff) = -1 EINTR (Interrupted system call) write(1, "in alarm_handler\n", 17) = 17 alarm(0) For some reason does another trip through BEGIN_SELECT_LOOP() macro ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7523> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com