diff options
Diffstat (limited to 'runtime/staprun/relay.c')
-rw-r--r-- | runtime/staprun/relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/staprun/relay.c b/runtime/staprun/relay.c index 5015cbef..82c5ccc4 100644 --- a/runtime/staprun/relay.c +++ b/runtime/staprun/relay.c @@ -64,7 +64,7 @@ static void *reader_thread(void *data) if (rc > max_rd) max_rd = rc; - if (write(out_fd[cpu], buf, rc) < 0) { + if (write(out_fd[cpu], buf, rc) != rc) { fprintf(stderr, "Couldn't write to output fd %d for cpu %d, exiting: errcode = %d: %s\n", out_fd[cpu], cpu, errno, strerror(errno)); pthread_exit(NULL); |