Thanks - that will work fine.

On 5/7/06, Robert Jordan <[EMAIL PROTECTED]> 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.Abort safe?

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  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to