Message116524
| Author |
aronacher |
| Recipients |
aronacher, loewis, ned.deily |
| Date |
2010年09月16日.11:47:38 |
| SpamBayes Score |
0.0042062066 |
| Marked as misclassified |
No |
| Message-id |
<1284637660.64.0.468391575207.issue9867@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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 |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年09月16日 11:47:40 | aronacher | set | recipients:
+ aronacher, loewis, ned.deily |
| 2010年09月16日 11:47:40 | aronacher | set | messageid: <1284637660.64.0.468391575207.issue9867@psf.upfronthosting.co.za> |
| 2010年09月16日 11:47:39 | aronacher | link | issue9867 messages |
| 2010年09月16日 11:47:38 | aronacher | create |
|