We cannot reliably detect when to quit in that case, so just always block.
return error("connect");
do {
- int tee_len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, SPLICE_F_NONBLOCK);
+ int tee_len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, 0);
if (tee_len < 0) {
if (errno == EAGAIN) {
return error("open output");
do {
- int tee_len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, SPLICE_F_NONBLOCK);
+ int tee_len = tee(STDIN_FILENO, STDOUT_FILENO, INT_MAX, 0);
if (tee_len < 0) {
if (errno == EAGAIN) {