Move fork block inside file read call.