add SPLICE_F_MORE to lttd splice
[ltt-control.git] / lttd / lttd.c
index f21c411eb8940de479fb62980917c6880fae7e99..61d24688f4283170f8cf98cb3ffe0b5075305d7c 100644 (file)
@@ -472,14 +472,14 @@ int read_subbuffer(struct fd_pair *pair)
                printf_verbose("splice chan to pipe offset %lu\n",
                        (unsigned long)offset);
                ret = splice(pair->channel, &offset, thread_pipe[1], NULL,
-                       len, SPLICE_F_MOVE);
+                       len, SPLICE_F_MOVE | SPLICE_F_MORE);
                printf_verbose("splice chan to pipe ret %ld\n", ret);
                if (ret < 0) {
                        perror("Error in relay splice");
                        goto write_error;
                }
                ret = splice(thread_pipe[0], NULL, pair->trace, NULL,
-                       ret, SPLICE_F_MOVE);
+                       ret, SPLICE_F_MOVE | SPLICE_F_MORE);
                printf_verbose("splice pipe to file %ld\n", ret);
                if (ret < 0) {
                        perror("Error in file splice");
This page took 0.022594 seconds and 4 git commands to generate.