This is the mail archive of the
cygwin-developers@cygwin.com
mailing list for the Cygwin project.
Re: Proposal: check and read /etc/{passwd,group} less frequently.
- To: <cygwin-developers at cygwin dot com>
- Subject: Re: Proposal: check and read /etc/{passwd,group} less frequently.
- From: Kazuhiro Fujieda <fujieda at jaist dot ac dot jp>
- Date: 14 Sep 2001 16:33:05 +0900
- References: <EA18B9FA0FE4194AA2B4CDB91F73C0EF08F177@itdomain002.itdomain.net.au>
- Reply-To: <cygwin-developers at cygwin dot com>
>>> On Fri, 14 Sep 2001 16:40:43 +1000
>>> "Robert Collins" <robert.collins@itdomain.com.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@jaist.ac.jp>
| HOKURIKU Center for Information Science
o_/ 1990 Japan Advanced Institute of Science and Technology