STINNER Victor added the comment:

This issue is a race condition or bug in the unit test, not in asyncio. The 
test doesn't check if echo.py is running, if Python started.

Python doesn't setup an handler for SIGHUP, it uses the current handler. On my 
Fedora 20, it looks to be "SIG_DFL":

Python 3.5.0a0 (default:795d90c7820d+, Apr 16 2014, 00:18:50) 
[GCC 4.8.2 20131212 (Red Hat 4.8.2-7)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import signal
>>> signal.getsignal(signal.SIGHUP)
<Handlers.SIG_DFL: 0>

Extract of the attached strace:
---
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, 
child_tidptr=0x7f9d1e8cba10) = 24719
Process 24719 attached
...
[pid 24719] rt_sigaction(SIGHUP, NULL, {SIG_IGN, [], 0}, 8) = 0
...
[pid 24625] kill(24719, SIGHUP)         = 0
[pid 24719] --- SIGHUP {si_signo=SIGHUP, si_code=SI_USER, si_pid=24625, 
si_uid=1000} ---
---

So the child process has SIGHUP configured to SIG_IGN on your platform.

----------
nosy: +gvanrossum, haypo, yselivanov

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue21247>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to