Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs/class
diff options
context:
space:
mode:
authorGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-06-23 00:10:17 +0400
committerGonzalo Paniagua Javier <gonzalo.mono@gmail.com>2010-06-23 00:10:17 +0400
commitdc037f0353e147793f1c8b83efcd5c97fbe78417 (patch)
tree02b64b7d367928249d2a3b2ac831e3029077eaac /mcs/class
parentc4b7ded3476ca09333f16b9c1378f1b84c440c22 (diff)
2010-06-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
* Ping.cs: we need to read the output to give the process time to start. Fixes bug #591136. svn path=/branches/mono-2-6/mcs/; revision=159371
Diffstat (limited to 'mcs/class')
-rw-r--r--mcs/class/System/System.Net.NetworkInformation/ChangeLog5
-rw-r--r--mcs/class/System/System.Net.NetworkInformation/Ping.cs5
2 files changed, 7 insertions, 3 deletions
diff --git a/mcs/class/System/System.Net.NetworkInformation/ChangeLog b/mcs/class/System/System.Net.NetworkInformation/ChangeLog
index 6566aa69427..a46d48633bf 100644
--- a/mcs/class/System/System.Net.NetworkInformation/ChangeLog
+++ b/mcs/class/System/System.Net.NetworkInformation/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-22 Gonzalo Paniagua Javier <gonzalo@novell.com>
+
+ * Ping.cs: we need to read the output to give the process time
+ to start. Fixes bug #591136.
+
2009-10-06 Gonzalo Paniagua Javier <gonzalo@novell.com>
* GatewayIPAddressInformationCollection.cs:
diff --git a/mcs/class/System/System.Net.NetworkInformation/Ping.cs b/mcs/class/System/System.Net.NetworkInformation/Ping.cs
index 3bf38880c2d..d50c14c2796 100644
--- a/mcs/class/System/System.Net.NetworkInformation/Ping.cs
+++ b/mcs/class/System/System.Net.NetworkInformation/Ping.cs
@@ -276,9 +276,8 @@ namespace System.Net.NetworkInformation {
ping.Start ();
#pragma warning disable 219
- // No need to read stdout or stderr as long as the output is less than 4k on linux <= 2.6.11 and 65k after that
- // string stdout = ping.StandardOutput.ReadToEnd ();
- // string stderr = ping.StandardError.ReadToEnd ();
+ string stdout = ping.StandardOutput.ReadToEnd ();
+ string stderr = ping.StandardError.ReadToEnd ();
#pragma warning restore 219
trip_time = (long) (DateTime.Now - sentTime).TotalMilliseconds;