threads/146917: open(), accept() are not thread safe

kan at kan at
Mon May 24 14:14:47 UTC 2010

Synopsis: open(), accept() are not thread safe

State-Changed-From-To: open->feedback
State-Changed-By: kan
State-Changed-When: Mon May 24 14:08:42 UTC 2010
Your explanation of what application is doing is not complete and it is
totally not clear what is that you are trying to do. The error code you
getting is EBADF, which suggests that one thread has likely closed the
handle other thread still uses. That or some other bug in you
application is likely causing what you are seeing - open, close and write
are certainly 'thread safe', as there is no global state to protect.

More information about the freebsd-threads mailing list