On 03/17/2014 08:58 AM, Nicolas De Voecht wrote: > 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 ?
Use a static variable to record the number of calls to your function and only send mail on the first one. -- Orion Poplawski Technical Manager 303-415-9701 x222 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane [email protected] Boulder, CO 80301 http://www.nwra.com ------------------------------------------------------------------------------ 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
