Fun with file descriptors
Posted Jun 7, 2007 16:41 UTC (Thu) by
daney (subscriber, #24551)
In reply to:
Fun with file descriptors by HenrikH
Parent article:
Fun with file descriptors
The problem being is that if you use a mutex to protect a blocking read, you can not interrupt it by closing the file descriptor as the thread calling close would block on the mutex.
There are ways to work around the current state of things, but the problem is that they are often complex and easy to get wrong.
(
Log in to post comments)