Date: Mon, 24 May 2010 14:14:46 GMT From: kan@FreeBSD.org To: cfishwu@corp.netease.com, kan@FreeBSD.org, freebsd-threads@FreeBSD.org Subject: Re: threads/146917: open(), accept() are not thread safe Message-ID: <201005241414.o4OEEkch072395@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 State-Changed-Why: 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. http://www.freebsd.org/cgi/query-pr.cgi?pr=146917
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005241414.o4OEEkch072395>