Re: With two unix socket binds in a row, the second one hangs ...
Re: With two unix socket binds in a row, the second one hangs ...
- Subject: Re: With two unix socket binds in a row, the second one hangs ...
- From: Terry Lambert <email@hidden>
- Date: Sun, 14 Feb 2010 10:37:52 -0800
Please repot it with code to reproduce it.
-- Terry
On Feb 14, 2010, at 2:59 AM, Jay Reynolds Freeman <email@hidden
> wrote:
I hope this is the right group, perhaps someone will advise me if not.
I have a situation in which I am doing two separate binds of
completely
different Unix sockets ( socket( AF_UNIX, SOCK_STREAM, 0) ), very
close
together in time. The first one works fine, but the second one hangs;
that is, it does not return an error, rather it never returns at all.
When I switch the order of the binds, it is always the second one that
hangs.
But when I put a one-second sleep, or an OSMemoryBarrier, between the
two binds, all is well. The fact that OSMemoryBarrier fixes the
problem
(and be it noted that I am running on an 8-core Mac Pro, so real
parallelism is possible), makes me suspect that I have a reportable
issue, and I will indeed kludge up a test case and file a bug, but
I thought I would query the list first, to see if anyone has anything
particular to suggest by way of test, analysis, or precedent. I have
nosed around on the web a bit, but can't find anything particularly
relevant.
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden