read_ints is only used in spawn.cc, so move it there. Make a note that this code is copied from glib.