[Mono-list] StreamReader.Read and other blocking calls are not interrupted with Thread.Interrupt on linux

andrewjcg andrewjcg at gmail.com
Thu Oct 22 19:46:54 EDT 2009

I am using a thread that reads from a StreamReader object running on Linux. 
I have another thread attempt to kill this thread by using Thread.Interrupt. 
However, the thread performing the read never generates an exception.  This
appears to be related to the state of the thread blocked on the read call,
which remains in the Running state.  Is this a bug somewhere in Mono? 
Should the state of the thread still be Running while it is calling
StreamReader.Read?  If so, is there a safe way to interrupt this call to

Thanks for any help,
View this message in context: http://www.nabble.com/StreamReader.Read-and-other-blocking-calls-are-not-interrupted-with-Thread.Interrupt-on-linux-tp26018950p26018950.html
Sent from the Mono - General mailing list archive at Nabble.com.

More information about the Mono-list mailing list