[Mono-bugs] [Bug 333741] System.Diagnostics.Process.GetCurrentProcess(). ProcessName returns 'mono' instead of process name

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Nov 2 11:12:44 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=333741#c2





--- Comment #2 from Dick Porter <dick at novell.com>  2007-11-02 09:12:44 MST ---
It works as requested for me with svn head:

:; cat 333741.cs    

using System;
using System.Diagnostics;

public class foo {
        public static void Main() {
                Console.WriteLine ("ProcessName[" +
Process.GetCurrentProcess().ProcessName + "]");
        }
}


:; mono 333741.exe
ProcessName[333741]


The process code has long tried to set a meaningful name for the process by
looking at the name of the executable assembly passed to 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.


More information about the mono-bugs mailing list