[Mono-bugs] [Bug 82796][Nor] Changed - System.Diagnostics.Process.ExitCode always returns 0 for NAnt

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 11 17:58:30 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by massi at ximian.com.

http://bugzilla.ximian.com/show_bug.cgi?id=82796

--- shadow/82796	2007-09-11 16:59:54.000000000 -0400
+++ shadow/82796.tmp.2102	2007-09-11 17:58:30.000000000 -0400
@@ -62,6 +62,22 @@
 There's nothing special about nant here...
 
 ------- Additional Comments From skolima at gmail.com  2007-09-11 16:59 -------
 There is, as `false` returns it status correctly on my machines. Maybe
 the fault lies in mono launching another mono process? Certainly
 binaries are not affected. I'll do some more testing tomorrow.
+
+------- Additional Comments From massi at ximian.com  2007-09-11 17:58 -------
+OK, the issue is on reporting/detecting the exit status of external
+mono processes.
+I added two more test processes to the program:
+[1] one for "mono /usr/lib/NAnt/NAnt.exe"
+[2] another for "/usr/bin/mono /usr/lib/NAnt/NAnt.exe"
+(I mean I use these strings inside the ProcessStartInfo constructor).
+Here /usr/bin/mono is 1.1.18.1 (stock on OpenSuse 10.2) and "mono"
+is r84274.
+
+In both cases, case [1] reports "Exit status was 255".
+On the other hand,  case [2] executing the test program with "mono"
+reports an exit code 1, and using /usr/bin/mono reports 0.
+So current svn seems to work better.
+Which version are you using?


More information about the mono-bugs mailing list