This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cygwin_bind bug.


Kazuhiro Fujieda wrote:
> 
> cygwin_bind() with AF_UNIX can return 0 even though it fails.
> 
> ChangeLog:
> Thu Nov 25 08:55:42 1999  Kazuhiro Fujieda <fujieda@jaist.ac.jp>
>         * net.cc (cygwin_bind): Return -1 properly if it fails on AF_UNIX.
> 
> --- net.cc-     Thu Nov 25 08:31:53 1999
> +++ net.cc      Thu Nov 25 08:55:42 1999
> [...]

Hi Kazuhiro,

the current code is using `res' and res is set to 0 only if everything
went fine. Neither `bind' nor `getsockname' return 0 but -1 in case of
error.

Corinna

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]