test fork and read in child process.