This is the mail archive of the cygwin-patches@cygwin.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]
Other format: [Raw text]

Re: Reorganizing internal_getlogin()


At 11:30 PM 6/12/2002 -0400, Christopher Faylor wrote:
>  I'm assuming that you haven't looked at
>the new code.  

Correct, I had already done the work and updating cvs
would wipe out my changes (the suboptimal way I am set up). 
But I will, tomorrow.

>My implementation goes a step further and tries to set
>it only when it is actually needed for non-cygwin programs, assuming
>that only non-cygwin Windows programs will be interested in most of the
>environment variables.
That's a good thing. I am curious to see how. I was hitting the
fact that once you are impersonated LookupAccountSid won't work properly,
so spawn_guts was the latest moment I could use it.

>Ah.  Ok.  Should have read your explanation more closely.  I was using a
>different definition of "parent_process".  You want to check
>child_proc_info, then.  If it is non-NULL, the process has been
>forked/execed.

Which is exactly what I pass to uinfo_init!
Good night.

Pierre


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