This avoids a small window for races between pipe and fdset. Reported in bug 579933 by Thiago Macieira.