Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F175558576
D57765.id180356.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
832 B
Referenced Files
None
Subscribers
None
D57765.id180356.diff
View Options
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -829,7 +829,6 @@
sweepmin, sweepmax);
else
(void)printf(": %d data bytes\n", datalen);
-
} else {
if (sweepmax)
(void)printf("PING %s: (%d ... %d) data bytes\n",
@@ -837,6 +836,7 @@
else
(void)printf("PING %s: %d data bytes\n", hostname, datalen);
}
+ (void)fflush(stdout);
/*
* Use sigaction() instead of signal() to get unambiguous semantics,
diff --git a/sbin/ping/ping6.c b/sbin/ping/ping6.c
--- a/sbin/ping/ping6.c
+++ b/sbin/ping/ping6.c
@@ -1114,6 +1114,7 @@
(unsigned long)(pingerlen() - 8));
printf("%s --> ", pr_addr((struct sockaddr *)&src, sizeof(src)));
printf("%s\n", pr_addr((struct sockaddr *)&dst, sizeof(dst)));
+ fflush(stdout);
if (preload == 0)
pinger();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Oct 12, 4:58 PM (13 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
40687823
Default Alt Text
D57765.id180356.diff (832 B)
Attached To
Mode
D57765: ping: Flush stdout after printing initial status
Attached
Detach File
Event Timeline
Log In to Comment