Fun with file descriptors
Posted Jun 7, 2007 11:52 UTC (Thu) by
HenrikH (guest, #31152)
In reply to:
Fun with file descriptors by daney
Parent article:
Fun with file descriptors
But this should be controlled by the application using mutexes to lock the access to the fd and you probably have some struct holding the fd that will also be freed upon the "close fd" so that thread #1 no longer can access the same fd after it is closed by thread #2.
That said however, it would be nice to avoid the reuse of the fd as it is now.
(
Log in to post comments)