2 * cleanup.h - Cleanup and shutdown framework.
4 * Jonathan McDowell <noodles@earth.li>
6 * Copyright 2004 Project Purple
15 * trytocleanup - say we should try to cleanup.
17 * This function sets the cleanup flag indicating we want to try and
20 void trytocleanup(void);
23 * cleanup - indicate if we should try to cleanup.
25 * This function returns a bool which indicates if we want to cleanup and
31 * catchsignals - Register signal handlers for various signals.
33 * This function registers a signal handler for various signals (PIPE,
34 * ALRM, INT, TERM, HUP) that sets the cleanup flag so we try to exit
37 void catchsignals(void);
39 #endif /* __CLEANUP_H__ */