This is the mail archive of the cygwin-developers 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: DLL loading


On Tue, May 24, 2011 at 02:43:23PM -0400, Charles Wilson wrote:
>But...if one were inclined to go that direction, then I like Ryan's
>alternate idea of using a dummy "stub" executable -- with no deps other
>than cygwin1.dll -- to manage setting up the child's memory map and
>loading (real, actual, pei-386) dlls, before handing off to the "real"
>.exe.  That way, little changes except inside the cgywin1.dll (I assume
>the "stub" exe would be a single, unique exe that cygwin1.dll uses to
>manage fork() regardless of the exe of the actual forker or eventual
>forkee()/exec().

For the record, the idea of using a dummy stub for fork/exec was first
floated in a Cygwin team meeting at Cygnus more than ten years ago.

cgf


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