[Mono-list] Re: From a signal to a ThreadAbort

Barry James bbjamey at gmail.com
Sun May 7 10:41:59 EDT 2006

Thanks - that will work fine.

On 5/7/06, Robert Jordan <robertj at gmx.net> wrote:
> Barry James wrote:
> > What's the recommended way to get a Unix signal to trigger a ThreadAbort
> > in a particular thread?  The documentation says only variables can be
> set
> > during the execution of a signal handler.  Is a call to Thread.Abortsafe?
> It's not safe. Set up a thread that polls the variable every x msecs
> and react upon the variable's value. Assure, that the signal handler's
> method is already JITed (simply call it once) before it gets invoked
> as a true signal handler.
> Here is a good sample:
> http://svn.myrealbox.com/viewcvs/trunk/mcs/tools/mono-service/
> Robert
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20060507/31ec7fcd/attachment.html

More information about the Mono-list mailing list