www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1999/11/24/21:28:55

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
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: Re: cygwin_bind bug.
References: <s1s903npgry DOT fsf AT jaist DOT ac DOT jp> <19991124192413 DOT A12159 AT cygnus DOT com>
<s1s4sebpcyz DOT fsf AT jaist DOT ac DOT jp> <19991124205652 DOT B15777 AT cygnus DOT com>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 25 Nov 1999 11:28:38 +0900
In-Reply-To: Chris Faylor's message of Wed, 24 Nov 1999 20:56:52 -0500
Message-ID: <s1s1z9fpand.fsf@jaist.ac.jp>
Lines: 24
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Wed, 24 Nov 1999 20:56:52 -0500
>>> Chris Faylor <cgf AT cygnus DOT com> said:

> In that case, why even use an intermediate variable?  Why not just check
> the results from bind and getsockname directly?

There is no reason... I carelessly failed to notice there is
no need of it.

> Index: net.cc
...
>            else
>              {
>                _close (fd);
>                chmod (un_addr->sun_path,
>                  (S_IFSOCK | S_IRWXU | S_IRWXG | S_IRWXO) & ~myself->umask);
> -              res = 0;
>              }

It is overkill. No one can set `res' to 0.
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  School of Information Science
o_/ 1990      Japan Advanced Institute of Science and Technology

- Raw text -


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