Subject: Re: bind() should not return -EADDRINUSE

From: Phillip Susi <[email-masked]>
Date: Thu, 11 Dec 2014 15:17:12 -0500

On 12/11/2014 3:13 PM, David Miller wrote:
> 
> But you don't know ahead of time what the processes are going to 
> do, that's the problem.
> 
> You cannot leave the port available and pretend to another process 
> that he will be able to use it.
> 
> Port allocation failures must be signalled at bind() time.

Says who?  The man pages for both listen() and connect() say they can
return EADDRINUSE.