New submission from Jonathan Stewmon:
Writing to sys.stdout on OS X can fail with IOError: [Errno 4] Interrupted
system call.
I have observed this while trying to write to sys.stdout when SIGCHLD is
received. The script below consistently reproduces the problem with python
2.7.2 on OS X
Jonathan Stewmon added the comment:
Sorry, I had a typo in the original report - I am actually using Python 2.7.7
installed with homebrew.
The script crashes for me on the first iteration every time using iTerm as my
terminal. I just tried it in Terminal, and it doesn't crash.
Maybe