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

[linux-team] Sortir d'un appel à select



J'un un programme avec des threads. Un de ces threads est bloqué sur un
appel à select qui attend que quelque chose soit disponible (lecture ou
écriture) sur un socket. A un moment donné, je veux débloquer l'appel à
select pour que le thread puisse terminer correctement son travail. Fermer
le socket ne débloque pas l'appel à select.

Comment débloquer l'appel bloquant à select, sans bêtement tuer le thread et
sans utiliser un timeout à l'appel de select.

--
francois.piette@swing.be
http://users.swing.be/francois.piette/indexuk.htm



--------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/