Back to home page

Nginx displayed by LXR

Source navigation ]
Diff markup ]
Identifier search ]
general search ]
 
 
Version: nginx-1.15.11 ]​[ nginx-1.14.2 ]​

0001 
0002 /*
0003  * Copyright (C) Igor Sysoev
0004  * Copyright (C) Nginx, Inc.
0005  */
0006 
0007 
0008 #ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_
0009 #define _NGX_PROCESS_CYCLE_H_INCLUDED_
0010 
0011 
0012 #include <ngx_config.h>
0013 #include <ngx_core.h>
0014 
0015 
0016 #define NGX_CMD_OPEN_CHANNEL   1
0017 #define NGX_CMD_CLOSE_CHANNEL  2
0018 #define NGX_CMD_QUIT           3
0019 #define NGX_CMD_TERMINATE      4
0020 #define NGX_CMD_REOPEN         5
0021 
0022 
0023 #define NGX_PROCESS_SINGLE     0
0024 #define NGX_PROCESS_MASTER     1
0025 #define NGX_PROCESS_SIGNALLER  2
0026 #define NGX_PROCESS_WORKER     3
0027 #define NGX_PROCESS_HELPER     4
0028 
0029 
0030 typedef struct {
0031     ngx_event_handler_pt       handler;
0032     char                      *name;
0033     ngx_msec_t                 delay;
0034 } ngx_cache_manager_ctx_t;
0035 
0036 
0037 void ngx_master_process_cycle(ngx_cycle_t *cycle);
0038 void ngx_single_process_cycle(ngx_cycle_t *cycle);
0039 
0040 
0041 extern ngx_uint_t      ngx_process;
0042 extern ngx_uint_t      ngx_worker;
0043 extern ngx_pid_t       ngx_pid;
0044 extern ngx_pid_t       ngx_new_binary;
0045 extern ngx_uint_t      ngx_inherited;
0046 extern ngx_uint_t      ngx_daemonized;
0047 extern ngx_uint_t      ngx_exiting;
0048 
0049 extern sig_atomic_t    ngx_reap;
0050 extern sig_atomic_t    ngx_sigio;
0051 extern sig_atomic_t    ngx_sigalrm;
0052 extern sig_atomic_t    ngx_quit;
0053 extern sig_atomic_t    ngx_debug_quit;
0054 extern sig_atomic_t    ngx_terminate;
0055 extern sig_atomic_t    ngx_noaccept;
0056 extern sig_atomic_t    ngx_reconfigure;
0057 extern sig_atomic_t    ngx_reopen;
0058 extern sig_atomic_t    ngx_change_binary;
0059 
0060 
0061 #endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */