Message216434
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. |
|
Date |
User |
Action |
Args |
2014-04-16 05:42:56 | vstinner | set | recipients:
+ vstinner, gvanrossum, yselivanov, opoplawski |
2014-04-16 05:42:56 | vstinner | set | messageid: <1397626976.6.0.137171129461.issue21247@psf.upfronthosting.co.za> |
2014-04-16 05:42:56 | vstinner | link | issue21247 messages |
2014-04-16 05:42:56 | vstinner | create | |
|