[Checkins] [zopefoundation/zdaemon] 95e571: Bugfix: notice programs that die too fast on Pytho...
GitHub
noreply at github.com
Fri Apr 15 16:28:27 CEST 2016
Branch: refs/heads/master
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.
Commit: 07f934d3361959426e0adaa8e4029e442ae235ac
https://github.com/zopefoundation/zdaemon/commit/07f934d3361959426e0adaa8e4029e442ae235ac
Author: Tres Seaver <tseaver at palladion.com>
Date: 2016-04-15 (Fri, 15 Apr 2016)
Changed paths:
M src/zdaemon/zdrun.py
Log Message:
-----------
Merge pull request #16 from zopefoundation/py35-interrupt-select
Bugfix: notice programs that die too fast on Python 3.5
Compare: https://github.com/zopefoundation/zdaemon/compare/5d7dda4cf49e...07f934d33619
More information about the checkins
mailing list