[Mono-bugs] [Bug 616901] New: AppDomain.ProcessExit timeout not implemented

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 23 18:15:55 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=616901

http://bugzilla.novell.com/show_bug.cgi?id=616901#c0


           Summary: AppDomain.ProcessExit timeout not implemented
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: casteg at mail.ru
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


http://msdn.microsoft.com/ru-ru/library/system.appdomain.processexit.aspx

"The total execution time of all ProcessExit event handlers is limited, just as
the total execution time of all finalizers is limited at process shutdown.The
default is three seconds, which can be overridden by an unmanaged host."

Run this simple example:

        public static void Main(string[] args)
        {
            AppDomain.CurrentDomain.ProcessExit += delegate
            {
                Thread.Sleep(5000);
                Console.WriteLine("Hello!");
            };
        }


mono prints "Hello!" after patiently waiting for 5 seconds and exits

MS .NET exits after 3 seconds without printing anything

I'm not sure whether it's a compatibility enhancement or a bug report.

-- 
Configure bugmail: http://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