Hi,
after some tests, it appears that the ATEXIT function registration is
copied when a process forks resulting in multiple calls to the function. It
is not very convenient as I can't forbid the users to use fork in their
programs...
Any other idea ?
Thanks,
Nicolas
2014-03-17 15:15 GMT+01:00 Nicolas De Voecht <
[email protected]>:
> Hi !
>
> Thanks for the atexit function, it seems to work in my first tests.
>
> Unfortunately I've nothing to send you yet, I was simply using the example
> plugin with a simple file output.
>
> Nicolas
>
>
> 2014-03-17 14:57 GMT+01:00 Gene Cooperman <[email protected]>:
>
> Hi Nicolas,
>> Could you send us your small plugin? We'll test DMTCP_EVENT_EXIT
>> against your plugin. Also, if you have no objection, we could add
>> the polished version of your plugin to DMTCP contrib.
>>
>> Thanks,
>> - Gene
>>
>> On Sun, Mar 16, 2014 at 04:42:56PM +0100, Nicolas De Voecht wrote:
>> > Hi team,
>> >
>> > I would like to be notified when a program running under DMTCP ended. I
>> > wrote a small plugin that try to send an email when an event
>> > DMTCP_EVENT_EXIT occurs but it does not seem to work.
>> >
>> > With a simple example program like:
>> >
>> > int main(int argc, char** argv){
>> > printf("Hello word!\n");
>> > }
>> >
>> > the event DMTCP_EVENT_EXIT does not occur. It only occurs when I add the
>> > exit instruction:
>> >
>> > int main(int argc, char** argv){
>> > printf("Hello word!\n");
>> > exit(0);
>> > }
>> >
>> > Is there another way to go ?
>> >
>> > Thanks in advance for your help :)
>> >
>> > Best regards,
>> >
>> > Nicolas De Voecht
>>
>> >
>> ------------------------------------------------------------------------------
>> > Learn Graph Databases - Download FREE O'Reilly Book
>> > "Graph Databases" is the definitive new guide to graph databases and
>> their
>> > applications. Written by three acclaimed leaders in the field,
>> > this first edition is now available. Download your free book today!
>> > http://p.sf.net/sfu/13534_NeoTech
>>
>> > _______________________________________________
>> > Dmtcp-forum mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/dmtcp-forum
>>
>>
>
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Dmtcp-forum mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dmtcp-forum