[Checkins] [zopefoundation/zdaemon] 95e571: Bugfix: notice programs that die too fast on Pytho...
GitHub
noreply at github.com
Fri Apr 15 10:12:38 CEST 2016
Branch: refs/heads/py35-interrupt-select
Home: https://github.com/zopefoundation/zdaemon
Commit: 95e5714be924f54f28c749b1df6cfec82f40e831
https://github.com/zopefoundation/zdaemon/commit/95e5714be924f54f28c749b1df6cfec82f40e831
Author: Marius Gedminas <marius at gedmin.as>
Date: 2016-04-15 (Fri, 15 Apr 2016)
Changed paths:
M src/zdaemon/zdrun.py
Log Message:
-----------
Bugfix: notice programs that die too fast on Python 3.5
Background: Python 3.5 changes select.select() to handle EINTR
internally (PEP 475). Our main loop used to rely on select() returning
early when a SIGCHLD signal arrives, so this change broke our timing
measurement logic and made a unit test fail on Python 3.5.
I implemented one of the two suggested workarounds in the PEP:
signal.set_wakeup_fd() (which is available since Python 2.6) will now
tell our select() to wake up whenever a signal arrives.
More information about the checkins
mailing list