Commenti al problema di {{{SPLICE_F_NONBLOCK}}} e correzione del
[gapil.git] / listati / tee.c
index 51df9f665667c9e6e2dbaae7a2cc5aed20fa21b4..6fb203ac4285431929ce886762a29679b94eb592 100644 (file)
@@ -36,7 +36,7 @@ int main(int argc, char *argv[])
     /* tee loop */
     while (1) {
         /* copy stdin to stdout */
-        len = tee(STDIN_FILENO, STDOUT_FILENO, size, SPLICE_F_NONBLOCK);
+        len = tee(STDIN_FILENO, STDOUT_FILENO, size, 0);
        if (len == 0) break;
         if (len < 0) {
             if (errno == EAGAIN) {