Back to index

php5  5.3.10
fpm.h
Go to the documentation of this file.
00001 
00002        /* $Id: fpm.h,v 1.13 2008/05/24 17:38:47 anight Exp $ */
00003        /* (c) 2007,2008 Andrei Nigmatulin */
00004 
00005 #ifndef FPM_H
00006 #define FPM_H 1
00007 
00008 #include <unistd.h>
00009 
00010 int fpm_run(int *max_requests);
00011 int fpm_init(int argc, char **argv, char *config, char *prefix, char *pid, int test_conf);
00012 
00013 struct fpm_globals_s {
00014        pid_t parent_pid;
00015        int argc;
00016        char **argv;
00017        char *config;
00018        char *prefix;
00019        char *pid;
00020        int running_children;
00021        int error_log_fd;
00022        int log_level;
00023        int listening_socket; /* for this child */
00024        int max_requests; /* for this child */
00025        int is_child;
00026        int test_successful;
00027        int heartbeat;
00028 };
00029 
00030 extern struct fpm_globals_s fpm_globals;
00031 
00032 #endif