summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHåkon Nessjøen <haakon.nessjoen@gmail.com>2013-01-13 18:33:02 +0100
committerHåkon Nessjøen <haakon.nessjoen@gmail.com>2013-01-13 18:33:02 +0100
commit585c98611c16d0a08ab6d864f5ce13829c31df31 (patch)
tree76650bc9d840e7f82545da98fd4a57ef8f379849
parentdcb176155767156662c1177592016508376dadcd (diff)
downloadMAC-Telnet-585c98611c16d0a08ab6d864f5ce13829c31df31.tar.gz
MAC-Telnet-585c98611c16d0a08ab6d864f5ce13829c31df31.zip
Added explicit flush in batch mode.
-rw-r--r--mndp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mndp.c b/mndp.c
index 729b629..4ef8f7d 100644
--- a/mndp.c
+++ b/mndp.c
@@ -143,6 +143,7 @@ int mndp(int timeout, int batch_mode) {
printf("'%s','%s','%s',", packet->platform, packet->version, packet->hardware);
printf("'%d','%s','%s'", packet->uptime, packet->softid, packet->ifname);
putchar('\n');
+ fflush(stdout);
}
}