Add select() to wait for readable children