Add a test script for SIGCHLD/EINTR.

Thanks to Arnd Hannemann for help debugging the problem.
EINTR needs to be ignored.

Thanks to Arnd Hannemann for help with debugging this.