From 6eb62e64ae418c00a60149f7856e5b2fba24c227 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 11 Feb 2008 15:16:11 +0000 Subject: [PATCH] Have fping flush stdout every print to restore expected behavior with a mix of up and down hosts --- fping/fping.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/fping/fping.patch b/fping/fping.patch index 71c91d9..3007b44 100644 --- a/fping/fping.patch +++ b/fping/fping.patch @@ -1,6 +1,6 @@ diff -uNr fping-2.4b2_to/fping.c fping-2.4b2_to_new/fping.c --- fping-2.4b2_to/fping.c 2001-07-20 13:10:26.000000000 -0400 -+++ fping-2.4b2_to_new/fping.c 2008-02-08 16:28:44.000000000 -0500 ++++ fping-2.4b2_to_new/fping.c 2008-02-11 10:11:32.000000000 -0500 @@ -1574,7 +1574,7 @@ if( handle_random_icmp( icp, result, &response_addr ) ) num_othericmprcvd++; @@ -10,3 +10,11 @@ diff -uNr fping-2.4b2_to/fping.c fping-2.4b2_to_new/fping.c }/* IF */ +@@ -1665,6 +1665,7 @@ + printf( " [<- %s]", inet_ntoa( response_addr.sin_addr ) ); + + printf( "\n" ); ++ fflush(stdout); + + }/* IF */ + }/* IF */