]> sourceware.org Git - systemtap.git/commitdiff
Fix PR19915 by correctly updating the wsize.
authorMartin Cermak <mcermak@redhat.com>
Wed, 6 Apr 2016 15:22:43 +0000 (17:22 +0200)
committerMartin Cermak <mcermak@redhat.com>
Wed, 6 Apr 2016 15:22:43 +0000 (17:22 +0200)
staprun/relay.c

index b06c9d0dd945870a2901c8827792f9192a90f9d0..aa81370142ed11714462705992dcf3a2e651bd04 100644 (file)
@@ -220,8 +220,8 @@ static void *reader_thread(void *data)
                                 }
                                 wbytes -= rc;
                                 wbuf += rc;
+                                wsize += rc;
                         }
-                       wsize += wbytes;
                }
         } while (!stop_threads);
        dbug(3, "exiting thread for cpu %d\n", cpu);
This page took 0.029141 seconds and 5 git commands to generate.