05-11-06 12:18 PM
bart.smaalders@gmail.com wrote:
> well, you need to figure out what ties the various instances of
> programs using
> these libraries together.. e.g. are they all children of the same
> process, or is there
> something else you can use?
Is there some part of "... a block of strings like the environment and
inherited parent to child ..." that's unclear? :-) The point here is to
emulate the behavior of the environment as closely as possible without
affecting the 'environ' pointer or getenv/putenv, etc.
> Once you have that unique thing, create a filename
> using that unique id and have each app read that file via your library.
Just to make sure, you're speaking of a different file per process,
uniqified via the pid or similar? There will be a potentially deep
process hierarchy and each process will want to modify its "environment"
before passing it down.
Thanks,
HT
[ Post a follow-up to this message ]
|