Follow-up Comment #1, bug #20885 (project dotgnu-pnet):
Attached is a patch with sample application.
In short: socket now registers thread that enters blocking
operation and
unregisters it when operation ends. When you close socket,
all registered
threads are unblocked by sending IL_SIG_ABORT.
IL_SIG_ABORT is also sent to background threads while
process is destroyed.
This ensures that background threads will not prevent from
from ending.
IL_SIG_ABORT is not called on foreground thread because
blocking foreground
thread must prevent program to exit (this is correct
behavior).
(file #13915)
_______________________________________________________
Additional Item Attachment:
File name: blocking.tar.gz Size:33 KB
_______________________________________________________
Reply to this item at:
<http://savann
ah.gnu.org/bugs/?20885>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Pnet-developers mailing list
Pnet-developers dotgnu.org
ht
tp://dotgnu.org/mailman/listinfo/pnet-developers
|