php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
fpm_process_ctl.h
Go to the documentation of this file.
1 /* (c) 2007,2008 Andrei Nigmatulin */
2
3#ifndef FPM_PROCESS_CTL_H
4#define FPM_PROCESS_CTL_H 1
5
6#include "fpm_events.h"
7
8/* 1s (in ms) heartbeat for idle server maintenance */
9#define FPM_IDLE_SERVER_MAINTENANCE_HEARTBEAT (1000)
10/* a minimum of 130ms heartbeat for pctl */
11#define FPM_PCTL_MIN_HEARTBEAT (130)
12
13
14struct fpm_child_s;
15
16void fpm_pctl(int new_state, int action);
18int fpm_pctl_kill(pid_t pid, int how);
19void fpm_pctl_kill_all(int signo);
20void fpm_pctl_heartbeat(struct fpm_event_s *ev, short which, void *arg);
21void fpm_pctl_perform_idle_server_maintenance_heartbeat(struct fpm_event_s *ev, short which, void *arg);
22void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg);
23int fpm_pctl_child_exited(void);
24int fpm_pctl_init_main(void);
25
26
27enum {
33};
34
35enum {
39};
40
41enum {
47};
48
49#endif
zval * arg
Definition ffi.c:3975
void fpm_pctl(int new_state, int action)
int fpm_pctl_init_main(void)
int fpm_pctl_can_spawn_children(void)
@ FPM_PCTL_STATE_TERMINATING
@ FPM_PCTL_STATE_NORMAL
@ FPM_PCTL_STATE_FINISHING
@ FPM_PCTL_STATE_RELOADING
@ FPM_PCTL_STATE_UNSPECIFIED
@ FPM_PCTL_ACTION_SET
@ FPM_PCTL_ACTION_TIMEOUT
@ FPM_PCTL_ACTION_LAST_CHILD_EXITED
int fpm_pctl_kill(pid_t pid, int how)
@ FPM_PCTL_CONT
@ FPM_PCTL_KILL
@ FPM_PCTL_TERM
@ FPM_PCTL_QUIT
@ FPM_PCTL_STOP
void fpm_pctl_on_socket_accept(struct fpm_event_s *ev, short which, void *arg)
void fpm_pctl_heartbeat(struct fpm_event_s *ev, short which, void *arg)
void fpm_pctl_kill_all(int signo)
int fpm_pctl_child_exited(void)
void fpm_pctl_perform_idle_server_maintenance_heartbeat(struct fpm_event_s *ev, short which, void *arg)