➜

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.

作者 aronacher
收信人 aronacher, loewis, ned.deily
日期 2010-09-16.11:47:38
SpamBayes Score 0.0042062066
Marked as misclassified 否
Message-id <1284637660.64.0.468391575207.issue9867@psf.upfronthosting.co.za>
In-reply-to
内容
One could argue of course that every user of Python should handle EINTR, but that's something I think should be solved in the IO library because very few people know that one is supposed to restart syscalls on EINTR on POSIX systems.

Ruby for instance handles EINTR properly:

mitsuhiko@nausicaa:~$ ruby -e 'puts $stdin.read.inspect'
^Z
[1]+  Stopped
mitsuhiko@nausicaa:~$ fg
ruby -e 'puts $stdin.read.inspect'
test
"test\n"



So does perl:

mitsuhiko@nausicaa:~$ perl -e 'chomp($x = <STDIN>); print $x'
^Z
[1]+  Stopped
mitsuhiko@nausicaa:~$ fg
perl -e 'chomp($x = <STDIN>); print $x'
test
test
历史
日期 用户 动作 参数
2010-09-16 11:47:40aronacher修改recipients: + aronacher, loewis, ned.deily
2010-09-16 11:47:40aronacher修改messageid: <1284637660.64.0.468391575207.issue9867@psf.upfronthosting.co.za>
2010-09-16 11:47:39aronacher链接issue9867 messages
2010-09-16 11:47:38aronacher创建