www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/11/24/19:58:47

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-developers-unsubscribe-archive-cygwin-developers=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <383C89D2.1B56053E@vinschen.de>
Date: Thu, 25 Nov 1999 01:58:58 +0100
From: Corinna Vinschen <corinna AT vinschen DOT de>
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: de,en
MIME-Version: 1.0
To: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
CC: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: cygwin_bind bug.
References: <s1s903npgry DOT fsf AT jaist DOT ac DOT jp>

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 AT jaist DOT ac DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019