Lior Kesos wrote:
I've manned around and found putenv(3) which changes and editsputenv certainly should work on running processes. However, I have my doubts regarding what you are trying to do.
environment variables..
What I need is to toggle the LD_ASSUME_KERNEL var in a running proccess .
Shouldn't that be enough?
Isn't putenv supposed to work on a running proccess?
In the best case, changing LD_ASSUME_KERNEL on a running process will have no effect. In the worst case, it will make the program crash and burn.
LD_ASSUME_KERNEL (and there are better experts than me here about this) tells the loader which glibc version to use for the process (i.e. - either the standard, old threading one, or the TLS kernel threading one). As such, it appears that by the time the process is already running, LD_ASSUME_KERNEL will have no effect. As I said before - that's the better case.
There may be some cases in which LD_ASSUME_KERNEL is consulted after the process is already running. Changing it mid-execution will cause some of the process's operations to be carried out using one threading model, and other using the other. This will likely result in chaos, spontaneous combustion of your computer, misbehavior, death of civilizations and total destructions of the human race. It's also likely that your process will misbehave.
So, in short, whatever it is you are trying to do, this does not seem like the right way to do it. What is it that you are trying to do?
Shachar
-- Shachar Shemesh Lingnu Open Source Consulting ltd. http://www.lingnu.com/
================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]