On Thu, Jul 15, 2004, Lior Kesos wrote about "Re: Manipulating an environment variable of a running proccess...": > I've manned around and found putenv(3) which changes and edits > environment variables.. > What I need is to toggle the LD_ASSUME_KERNEL var in a running proccess .
I think this will not do anything for the running process, and only have any effect on the children processes that this process will start in the future. Is this what you need? If so, it can work (attach to a running process with a debugger, check its stack to make sure it's not in some "dangerous territory", and run putenv()). But again, it might not work on programs that do not use getenv/putenv to manipulate the environment, but rather use their own mechanisms. I gave an example of shells (and perhaps even interpreters like Perl) which (I think, I haven't looked at a shell's source code recently) keep their own view of the environment. So just try it, and see if it works on the program you're interested in. -- Nadav Har'El | Thursday, Jul 15 2004, 26 Tammuz 5764 [EMAIL PROTECTED] |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |In God we Trust -- all others must submit http://nadav.harel.org.il |an X.509 certificate. ================================================================= 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]