X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,SPF_NEUTRAL,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Message-ID: <4CF3F36B.2010507@cornell.edu> Date: Mon, 29 Nov 2010 13:39:39 -0500 From: Ken Brown User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.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> In-Reply-To: <4CF3A930.40404@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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 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. Ken -- 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