[Mono-bugs] [Bug 325463] Process.ExitCode returns 0 for forked apps
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Mar 3 04:07:39 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=325463
User skolima at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=325463#c3
Leszek Ciesielski <skolima at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|misc |io-layer
OS/Version|Other |Linux
--- Comment #3 from Leszek Ciesielski <skolima at gmail.com> 2008-03-03 02:07:39 MST ---
As Gert pointed out, correct exit code can be obtained by using WaitForExit,
e.g.
processs.WaitForExit(1); //return immediately
if(process.HasExited)
//do some handling of process.ExitCode here
This hack work correctly only when using full path to the mono binary (i.e.
/usr/bin/mono instead of just mono).
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list