Back to index

php5  5.3.10
fpm_cleanup.h
Go to the documentation of this file.
00001 
00002        /* $Id: fpm_cleanup.h,v 1.5 2008/05/24 17:38:47 anight Exp $ */
00003        /* (c) 2007,2008 Andrei Nigmatulin */
00004 
00005 #ifndef FPM_CLEANUP_H
00006 #define FPM_CLEANUP_H 1
00007 
00008 int fpm_cleanup_add(int type, void (*cleanup)(int, void *), void *);
00009 void fpm_cleanups_run(int type);
00010 
00011 enum {
00012        FPM_CLEANUP_CHILD                                = (1 << 0),
00013        FPM_CLEANUP_PARENT_EXIT                          = (1 << 1),
00014        FPM_CLEANUP_PARENT_EXIT_MAIN              = (1 << 2),
00015        FPM_CLEANUP_PARENT_EXEC                          = (1 << 3),
00016        FPM_CLEANUP_PARENT                               = (1 << 1) | (1 << 2) | (1 << 3),
00017        FPM_CLEANUP_ALL                                         = ~0,
00018 };
00019 
00020 #endif
00021