Re: [HACKERS] atexit vs. on_exit

2011-12-22 Thread Tom Lane
Peter Eisentraut writes: > Are there any supported platforms that have only on_exit() but not > atexit()? Trolling the git logs shows that configure's support for on_exit was added here: commit df247b821d811abcfc0ac707e1a3af9dfce474c9 Author: Tatsuo Ishii Date: Tue Feb

[HACKERS] atexit vs. on_exit

2011-12-22 Thread Peter Eisentraut
Are there any supported platforms that have only on_exit() but not atexit()? It would be good in some cases to rewrite custom arrangements such as exit_nicely() or die_horribly() using those exit hooks, but supporting both through ifdefs makes the code more ugly than before. I dug around the buil