Message116524
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 |
|
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 | |
|