Armin Ronacher <armin.ronac...@active-4.com> added the comment:

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:

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



So does perl:

mitsuh...@nausicaa:~$ perl -e 'chomp($x = <STDIN>); print $x'
^Z
[1]+  Stopped
mitsuh...@nausicaa:~$ fg
perl -e 'chomp($x = <STDIN>); print $x'
test
test

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9867>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to