use select to wait for zfs send and receive