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
diff options
context:
space:
mode:
authorDick Porter <dick@acm.org>2003-03-19 19:31:16 +0300
committerDick Porter <dick@acm.org>2003-03-19 19:31:16 +0300
commitf364bbf69f64da11c42aca7c35f24050dc5a6655 (patch)
tree4888c2e312967050a7633aed0ae78b080c69739b /mcs/class/System/System.Diagnostics
parent6e2c1895906b734cf0be45a72bbe8896ade3a530 (diff)
2003-03-19 Dick Porter <dick@ximian.com>
* Process.cs: Implement HasExited, fixes bug 39267 svn path=/trunk/mcs/; revision=12680
Diffstat (limited to 'mcs/class/System/System.Diagnostics')
-rw-r--r--mcs/class/System/System.Diagnostics/ChangeLog4
-rwxr-xr-xmcs/class/System/System.Diagnostics/Process.cs10
2 files changed, 12 insertions, 2 deletions
diff --git a/mcs/class/System/System.Diagnostics/ChangeLog b/mcs/class/System/System.Diagnostics/ChangeLog
index 95fdbc60833..764b604afa1 100644
--- a/mcs/class/System/System.Diagnostics/ChangeLog
+++ b/mcs/class/System/System.Diagnostics/ChangeLog
@@ -1,3 +1,7 @@
+2003-03-19 Dick Porter <dick@ximian.com>
+
+ * Process.cs: Implement HasExited, fixes bug 39267
+
2003-03-13 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* Process.cs: throw an exception when the executable cannot be found.
diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs
index 0601b033207..2e2bb4843a7 100755
--- a/mcs/class/System/System.Diagnostics/Process.cs
+++ b/mcs/class/System/System.Diagnostics/Process.cs
@@ -87,10 +87,16 @@ namespace System.Diagnostics {
}
}
- [MonoTODO]
public bool HasExited {
get {
- return(false);
+ int exitcode=ExitCode;
+
+ if(exitcode==259) {
+ /* STILL_ACTIVE */
+ return(false);
+ } else {
+ return(true);
+ }
}
}