This is the mail archive of the cygwin-patches@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH]: Changes in process startup code


I have just checked in a patch related to that patch:

- On fork() and spawn() I have copied pointers(!) to SID's from
  parent to child process. This is corrected now.
- Before calling LookupAccountName() I try to get the SID from
  the access token of the current process. This should work for
  99.999% of all processes and should therefore speed up process
  startup with ntsec ON quite more. Nevertheless _if_ that fails,
  it would try the LookupAccountName, though.

Corinna

Corinna Vinschen wrote:
> 
> I have just checked in a patch which adds the following
> features to cygwin when running on NT/W2K:
> 
> - User SID is now only retrieved if ntsec is ON.
> 
> That should result in a considerable speed up if ntsec is OFF.
> 
> - User logon informations are now only retrieved on the
>   first parent process or if the user context changes
>   (eg. via sshd, ftpd, login).
> - First the code tries to get that information from the
>   localhost and only if that failes, it tries to get them
>   from the logon server.
> 
> Advantage of the above patches should be a considerable
> speed up with ntsec ON and at least some speed up with
> ntsec OFF.
> 
> - If user context changes, the environment is adjusted.
>   The following variable are changed according to the new
>   user:
> 
>         HOMEDRIVE
>         HOMEPATH
>         LOGONSERVER
>         USERDOMAIN
>         USERNAME
>         USERPROFILE
> 
> - If a new process is spawned in a new user context
>   (CreateProcessAsUser), the dll tries to load the users
>   registry hive.
> 
>   Advantage: Each user has it's own mount points also when
>   logged on via telnet/ssh etc.
> 
>   Disadvantage: Changes made to the users registry hive
>   in a telnet/ssh session are lost on reboot because there's
>   currently no code which would be able to save the hive
>   back again.
> 
> COrinna

-- 
Corinna Vinschen
Cygwin Developer
Cygnus Solutions, a Red Hat company

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]