ioctl(fd, FIONREAD, &nbytes) in combination with a short sleep, perhaps? i.e., if nbytes is below the threshold, sleep for a short period ...
確定! 回上一頁