并不像你想像的那样(son一直读取fifo), son 只会读取一次 fifo 文件就结束了。由于father1第二次写的时候没有读取者,所以你的写fifo的函数就会被block。 把son 改成 function son (){ while true do read line。