Re: [PATCH v3] Handle atexit list internaly for unthreaded builds

2014-10-13 Thread Andreas Schwab
Etienne Buira writes: > +#define tmp_atexit atexit > +#define atexit tmp_atexit > +#undef tmp_atexit What is this supposed to do? Andreas. -- Andreas Schwab, sch...@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely diffe

[PATCH v3] Handle atexit list internaly for unthreaded builds

2014-10-13 Thread Etienne Buira
Wrap atexit()s calls on unthreaded builds to handle callback list internally. This is needed because on unthreaded builds, asyncs inherits parent's atexit() list, that gets run as soon as the async exit()s (and again at the end of the parent process). That led to remove temporary and lock files to