2
0
mirror of https://github.com/xcat2/xcat-dep.git synced 2024-11-21 17:11:45 +00:00
xcat-dep/fping/fping.patch
2008-02-11 15:28:13 +00:00

45 lines
961 B
Diff

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-11 10:26:06.000000000 -0500
@@ -1131,6 +1131,7 @@
printf( " is unreachable" );
printf( "\n" );
+ fflush(stdout);
}/* IF */
}/* IF */
@@ -1466,6 +1467,7 @@
printf( " error while sending ping: %s\n", strerror( errno ) );
printf( "\n" );
+ fflush(stdout);
}/* IF */
@@ -1574,7 +1576,7 @@
if( handle_random_icmp( icp, result, &response_addr ) )
num_othericmprcvd++;
- return 1;
+ return 0;
}/* IF */
@@ -1665,6 +1667,7 @@
printf( " [<- %s]", inet_ntoa( response_addr.sin_addr ) );
printf( "\n" );
+ fflush(stdout);
}/* IF */
}/* IF */
@@ -1693,6 +1696,7 @@
printf( " [<- %s]", inet_ntoa( response_addr.sin_addr ) );
printf( "\n" );
+ fflush(stdout);
}/* IF */