dotgnu-pnet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Pnet-developers] [bug #20885] Using async socket methods prevents progr


From: Radek Polak
Subject: [Pnet-developers] [bug #20885] Using async socket methods prevents program to exit
Date: Tue, 11 Sep 2007 11:37:04 +0000
User-agent: Mozilla/5.0 (compatible; Konqueror/3.5; Linux) KHTML/3.5.7 (like Gecko)

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://savannah.gnu.org/bugs/?20885>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]