www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2001/09/14/03:33:09

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-developers-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-developers-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com
To: <cygwin-developers AT cygwin DOT com>
Subject: Re: Proposal: check and read /etc/{passwd,group} less frequently.
Reply-To: <cygwin-developers AT cygwin DOT com>
References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F177 AT itdomain002 DOT itdomain DOT net DOT au>
Mime-Version: 1.0 (generated by tm-edit 7.106)
From: Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
Date: 14 Sep 2001 16:33:05 +0900
In-Reply-To: "Robert Collins"'s message of Fri, 14 Sep 2001 16:40:43 +1000
Message-ID: <s1su1y6qlam.fsf@jaist.ac.jp>
Lines: 18
X-Mailer: Gnus v5.3/Emacs 19.34

>>> On Fri, 14 Sep 2001 16:40:43 +1000
>>> "Robert Collins" <robert DOT collins AT itdomain DOT com DOT au> said:

> How often is internal_getlogin called relative to get(p|g)w*?

It is in set{g,u}id and uinfo_init. At the user's point of view, 
the cache is updated only when they execute another command.

> I don't see how they would no longer need thread protection.
> internal_getlogin could be updating the cache while a user thread calls
> getpwuid.

It is nonsense or impossible that a user thread calls get{p,g}w*
in set{g,u}id and uinfo_init.
____
  | AIST      Kazuhiro Fujieda <fujieda AT jaist DOT ac DOT jp>
  | HOKURIKU  Center for 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