poll() and EOF

Richard Kettlewell compares how the poll() system call behaves on seeing EOF on different platforms (see here).