src/os/win32/ngx_process_cycle.h - nginx source code

Macros defined

Source code


  1. /*
  2. * Copyright (C) Igor Sysoev
  3. * Copyright (C) Nginx, Inc.
  4. */


  5. #ifndef _NGX_PROCESS_CYCLE_H_INCLUDED_
  6. #define _NGX_PROCESS_CYCLE_H_INCLUDED_


  7. #include <ngx_config.h>
  8. #include <ngx_core.h>


  9. #define NGX_PROCESS_SINGLE     0
  10. #define NGX_PROCESS_MASTER     1
  11. #define NGX_PROCESS_SIGNALLER  2
  12. #define NGX_PROCESS_WORKER     3


  13. void ngx_master_process_cycle(ngx_cycle_t *cycle);
  14. void ngx_single_process_cycle(ngx_cycle_t *cycle);
  15. void ngx_close_handle(HANDLE h);


  16. extern ngx_uint_t      ngx_process;
  17. extern ngx_uint_t      ngx_worker;
  18. extern ngx_pid_t       ngx_pid;
  19. extern ngx_uint_t      ngx_exiting;

  20. extern sig_atomic_t    ngx_quit;
  21. extern sig_atomic_t    ngx_terminate;
  22. extern sig_atomic_t    ngx_reopen;

  23. extern ngx_uint_t      ngx_inherited;
  24. extern ngx_pid_t       ngx_new_binary;


  25. extern HANDLE          ngx_master_process_event;
  26. extern char            ngx_master_process_event_name[];


  27. #endif /* _NGX_PROCESS_CYCLE_H_INCLUDED_ */