Don't try to guess the right flag.
FD_CLOEXEC is defined as 1 which is SOCK_STREAM also.

Better solution is to write ifdef for OS X near the flag or to remove
the errno check at the next if statement, so the execution always
tries to call second socket() without any tricky flags in case when
first socket() call is failed.

On 30 March 2015 at 11:43, Paul Beach <pbe...@ibphoenix.com> wrote:
> <<I built 64-bit version of Firebird (OS X 10.10, AppleClang 6.0.0, Xcode 
> 6.2).
> The symbol O_CLOEXEC is present, but as you see it has negative effect
> on socket() call.>>
>
> Ahh - good - that gets rid of one possible reason for failure.
> Perhaps FD_CLOEXEC instead?
>
> Paul
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> Firebird-Devel mailing list, web interface at 
> https://lists.sourceforge.net/lists/listinfo/firebird-devel



-- 
Egor Pugin

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to