Back to index

php5  5.3.10
fpm_children.h
Go to the documentation of this file.
00001 
00002        /* $Id: fpm_children.h,v 1.9 2008/05/24 17:38:47 anight Exp $ */
00003        /* (c) 2007,2008 Andrei Nigmatulin */
00004 
00005 #ifndef FPM_CHILDREN_H
00006 #define FPM_CHILDREN_H 1
00007 
00008 #include <sys/time.h>
00009 #include <sys/types.h>
00010 
00011 #include "fpm_worker_pool.h"
00012 #include "fpm_events.h"
00013 
00014 int fpm_children_create_initial(struct fpm_worker_pool_s *wp);
00015 int fpm_children_free(struct fpm_child_s *child);
00016 void fpm_children_bury();
00017 int fpm_children_init_main();
00018 int fpm_children_make(struct fpm_worker_pool_s *wp, int in_event_loop, int nb_to_spawn, int is_debug);
00019 
00020 struct fpm_child_s;
00021 
00022 struct fpm_child_s {
00023        struct fpm_child_s *prev, *next;
00024        struct timeval started;
00025        struct fpm_worker_pool_s *wp;
00026        struct fpm_event_s ev_stdout, ev_stderr;
00027        int shm_slot_i;
00028        int fd_stdout, fd_stderr;
00029        void (*tracer)(struct fpm_child_s *);
00030        struct timeval slow_logged;
00031        int idle_kill;
00032        pid_t pid;
00033        int scoreboard_i;
00034 };
00035 
00036 #endif