The issue was that, when forks == 1, the _executor() function was being called with None for the value of new_stdin. Fixes #3841, #3902