This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients gvanrossum, opoplawski, vstinner, yselivanov
Date 2014-04-16.05:42:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397626976.6.0.137171129461.issue21247@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-16 05:42:56vstinnersetrecipients: + vstinner, gvanrossum, yselivanov, opoplawski
2014-04-16 05:42:56vstinnersetmessageid: <1397626976.6.0.137171129461.issue21247@psf.upfronthosting.co.za>
2014-04-16 05:42:56vstinnerlinkissue21247 messages
2014-04-16 05:42:56vstinnercreate