read pipe empty,how to deal with it?