bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help needed implementing a new store class


From: Niels Möller
Subject: Re: help needed implementing a new store class
Date: 27 Oct 2003 09:18:27 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Trek <trek-lists@trek.eu.org> writes:

> It is normal that my LD_LIBRARY_PATH is not used when setting
> translators?

I believe it works like this: When a (passive) translator is started, it
inherits environment variables from its parent process, just like any
other process. The parent process is the filesystem process for the
process in which the translator is installed. So if /home/nisse is on
the root ext2 filesystem, and I install a translator on
/home/nisse/foo, then its parent will be the ext2 process, *not* my
shell. 

Setting an active translator is different, in this case I think it
should inherit environment variables from your shell. Anyway, you can
pass environment variables explicitly by something like

  settrans -p foo /bin/sh -c 'LD_LIBRARY_PATH=/foo/lib exec the-translator'

For debugging libstore, it's probably easier to use a non-translator
program like storeread, so that you don't have to care about
translator startup details.

/Niels




reply via email to

[Prev in Thread] Current Thread [Next in Thread]