➜

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.

作者 ronaldoussoren
收信人 aronacher, loewis, ned.deily, ronaldoussoren
日期 2010-09-16.12:18:57
SpamBayes Score 2.7137876e-05
Marked as misclassified 否
Message-id <1284639539.66.0.971883787114.issue9867@psf.upfronthosting.co.za>
In-reply-to
内容
Wouldn't retrying on EINTR cause havoc when you try to interrupt a process?

That is: what would happen with the proposed patch when a python script does a read that takes a very long time and the user tries to interrupt the script (by using Ctrl+C to send a SIGTERM)?

If I my understanding of is correct the patch will ensure that the process does not get interupted because the default SIGTERM handler just sets a flag that's periodicly checked in the python interpreter loop.  With the proposed patch python would not get around to checking that flag until the I/O operation is finished.
历史
日期 用户 动作 参数
2010-09-16 12:18:59ronaldoussoren修改recipients: + ronaldoussoren, loewis, ned.deily, aronacher
2010-09-16 12:18:59ronaldoussoren修改messageid: <1284639539.66.0.971883787114.issue9867@psf.upfronthosting.co.za>
2010-09-16 12:18:58ronaldoussoren链接issue9867 messages
2010-09-16 12:18:57ronaldoussoren创建