Hi Fred,

One possible way would be to do something like this:

env > new-env.txt
./dmtcp_restart_script.sh

And have your dmtcp plugin read new-env.txt during
DMTCP_PLUGIN_POST_RESTART.

Does that help?

Kapil

On Thu, Jul 26, 2012 at 6:01 AM, rtsw dev <[email protected]> wrote:

> Hi,
>
> I'm using several environment variables at checkpoint, I need to
> modify few of them at restart.
>
> DMTCP overwrites the environment at restart with the one saved at
> checkpoint and I didn't find anything like _real_getenv or
> _dmtcp_getenv.
>
> I tryed few method (getenv, char **environ, /proc/self/environ, plugin
> loaded on DMTCP_EVENT_POST_RESTART... ).
>
> Is there any solution to get the new environment variables ?
>
>
> Thanks,
> Fred
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Dmtcp-forum mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/dmtcp-forum
>
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Dmtcp-forum mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum

Reply via email to