[zeromq-dev] Socket migration code on Mac OS X

Douglas Creager dcreager at dcreager.net
Sat Aug 28 18:41:05 CEST 2010


Has anyone tried the latest git master on Mac OS X?  It looks like the
new socket migration code doesn't work — it would seem that sem_init()
is stubbed out on Mac OS X.

http://stackoverflow.com/questions/1413785/sem-init-on-os-x

The result is an assertion failure:

  Function not implemented
  rc != -1 (semaphore.hpp:96)

Are there any easy alternatives that could be used instead of unnamed
semaphores?  Maybe something silly like constructing a named semaphore
from the process ID and the address of the semaphore_t object?  Or from
a random UUID?

–doug

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 259 bytes
Desc: OpenPGP digital signature
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20100828/f29691c1/attachment.sig>


More information about the zeromq-dev mailing list