/etc/profile optimization and correctness

Ken Brown kbrown@cornell.edu
Mon Nov 29 19:45:00 GMT 2010


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



More information about the Cygwin mailing list