Ok Henry, I tried it in the debugger, and the Mutex is really missing, so this could easily cause a deadlock as you described.
I updated the Bug# 1001656 to include this fix: The same bug is in soreceive() and shutdown(SHUT_RD/SHUT_RDWR) too. Could you do me a favor please, and try the new BSD stack together with the previous version of your Software, and tell me if this fixes the problem now? Thanks Bernd. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss