[Mono-bugs] [Bug 592981] New: UnixSignal.WaitAny not interrupted when exiting

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Apr 1 06:59:14 EDT 2010


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

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


           Summary: UnixSignal.WaitAny not interrupted when exiting
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: dick at acm.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=351978)
 --> (http://bugzilla.novell.com/attachment.cgi?id=351978)
Test case

See the attached example code.

A loop running UnixSignal.WaitAny() is executed in a background thread.  The
loop terminates on SIGINT.  The main thread waits for return to be hit and then
calls Environment.Exit().  The application should then exit no matter the state
of the background thread.

Unfortunately, the runtime doesn't kill the background thread, and it continues
to block in UnixSignal.WaitAny().

Tested on 2.6 branch, updated 1/4/10.

-- 
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