delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/11/29/16:23:29

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
Message-ID: <4CF419B5.5000408@gmail.com>
Date: Mon, 29 Nov 2010 13:23:01 -0800
From: Daniel Colascione <dan DOT colascione AT gmail DOT com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101027 Thunderbird/3.1.6
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: /etc/profile optimization and correctness
References: <4CF3A930 DOT 40404 AT gmail DOT com> <4CF3F36B DOT 2010507 AT cornell DOT edu>
In-Reply-To: <4CF3F36B.2010507@cornell.edu>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 11/29/2010 10:39 AM, Ken Brown wrote:
> On 11/29/2010 8:22 AM, Daniel Colascione wrote:
>> Starting a login shell on my system takes a painfully long time, mostly
>> because fork() is pretty slow on WOW6432 systems. I've taken a look at
>> the shell initialization routines and identified some potential savings:
>>
>> - Can't we use USERNAME to set USER instead of running `id -un`?
> 
> You can't rely on USERNAME.  For example, if I login via ssh using
> pubkey authentication, USERNAME is set to SYSTEM on my machine.
> 

Works fine for me.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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