我想使用命名的 fifo 通道,并且我想在写入这个 fifo 时实现超时。
fd = open(pipe, O_WRONLY); write(fd, msg, len);
程序被函数open 阻塞,所以使用函数select 将不起作用。谢谢。
c linux pipe fifo
c ×1
fifo ×1
linux ×1
pipe ×1