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