STINNER Victor <[EMAIL PROTECTED]> added the comment: Using gdb, I dig the problem: * when CTRL+c is pressed, signal_handler (sig_num=2) at ./Modules/signalmodule.c:175 is called * signal_handler() stores the signal has a "pending call" * Linux kernel interrupts its name resolution (it looks like it's the read() syscall?) and return the error ETIMEDOUT (110) * back to socket_gethostbyaddr(): result=110, h=NULL * gethost_common() set an error using set_herror(1) * socket_gethostbyaddr() return NULL
Later, Py_MakePendingCalls() will call signal_default_int_handler() which raises the KeyboardInterrupt. _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1755388> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com