xref: /PHP-7.1/sapi/fpm/fpm/fpm_cleanup.h (revision 03f3b847)
1 	/* $Id: fpm_cleanup.h,v 1.5 2008/05/24 17:38:47 anight Exp $ */
2 	/* (c) 2007,2008 Andrei Nigmatulin */
3 
4 #ifndef FPM_CLEANUP_H
5 #define FPM_CLEANUP_H 1
6 
7 int fpm_cleanup_add(int type, void (*cleanup)(int, void *), void *);
8 void fpm_cleanups_run(int type);
9 
10 enum {
11 	FPM_CLEANUP_CHILD					= (1 << 0),
12 	FPM_CLEANUP_PARENT_EXIT				= (1 << 1),
13 	FPM_CLEANUP_PARENT_EXIT_MAIN		= (1 << 2),
14 	FPM_CLEANUP_PARENT_EXEC				= (1 << 3),
15 	FPM_CLEANUP_PARENT					= (1 << 1) | (1 << 2) | (1 << 3),
16 	FPM_CLEANUP_ALL						= ~0,
17 };
18 
19 #endif
20