summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordhartmei <dhartmei@openbsd.org>2003-06-21 20:57:45 +0000
committerdhartmei <dhartmei@openbsd.org>2003-06-21 20:57:45 +0000
commitb1fb0977a0b05c28db53d34c5ccb152faf4494a0 (patch)
tree59563565fbcd20fef7435d4e01e14b7527e23817
parentdocument mount_ntfs and better formatting; (diff)
downloadwireguard-openbsd-b1fb0977a0b05c28db53d34c5ccb152faf4494a0.tar.xz
wireguard-openbsd-b1fb0977a0b05c28db53d34c5ccb152faf4494a0.zip
fflush(stdout) in pfctl -vvsq endless output.
-rw-r--r--sbin/pfctl/pfctl_qstats.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/pfctl/pfctl_qstats.c b/sbin/pfctl/pfctl_qstats.c
index 3c47a095f95..d0d485e1d38 100644
--- a/sbin/pfctl/pfctl_qstats.c
+++ b/sbin/pfctl/pfctl_qstats.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_qstats.c,v 1.22 2003/06/20 16:53:48 deraadt Exp $ */
+/* $OpenBSD: pfctl_qstats.c,v 1.23 2003/06/21 20:57:45 dhartmei Exp $ */
/*
* Copyright (c) Henning Brauer <henning@openbsd.org>
@@ -93,6 +93,7 @@ pfctl_show_altq(int dev, int opts, int verbose2)
while (verbose2) {
printf("\n");
+ fflush(stdout);
sleep(STAT_INTERVAL);
if (pfctl_update_qstats(dev, &root))
return (-1);