]> git.proxmox.com Git - mirror_ovs.git/commitdiff
ovs-ofctl: Flush monitored data.
authorGurucharan Shetty <gshetty@nicira.com>
Fri, 16 May 2014 19:08:53 +0000 (12:08 -0700)
committerGurucharan Shetty <gshetty@nicira.com>
Wed, 28 May 2014 15:34:28 +0000 (08:34 -0700)
Otherwise, on Windows unit tests, data sometimes is
not seen in output files.

Signed-off-by: Gurucharan Shetty <gshetty@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ofctl.c

index d62d328310abfc294fa26eb514f9c06c599e696b..1034e8b333ded2955422646edb60a690fb9dfe98 100644 (file)
@@ -1479,6 +1479,7 @@ monitor_vconn(struct vconn *vconn, bool reply_to_echo_requests)
 
             ofptype_decode(&type, ofpbuf_data(b));
             ofp_print(stderr, ofpbuf_data(b), ofpbuf_size(b), verbosity + 2);
+            fflush(stderr);
 
             switch ((int) type) {
             case OFPTYPE_BARRIER_REPLY:
@@ -1552,6 +1553,7 @@ ofctl_monitor(int argc, char *argv[])
             msg = ofpbuf_new(0);
             ofputil_append_flow_monitor_request(&fmr, msg);
             dump_stats_transaction(vconn, msg);
+            fflush(stdout);
         } else {
             ovs_fatal(0, "%s: unsupported \"monitor\" argument", arg);
         }