A race condition that closes stdin - testcase
=============================================

Writing reliable test cases for race conditions is hard. Therefore, the test
case comes with a patch that adds sleeps at the right positions to make to the
problem occur practically always, also including comments a few fprintf to make
it easier to understand the problem.

The testcase outputs 

     stdin: POLLERRPOLLNVAL

after about 5 seconds if stdin was closed, otherwise, it outputs

    stdin still open


