Home
last modified time | relevance | path

Searched refs:rlmt (Results 1 – 3 of 3) sorted by relevance

/f-stack/app/nginx-1.16.1/src/os/unix/
H A Dngx_posix_init.c19 struct rlimit rlmt; variable
77 if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) { in ngx_os_init()
83 ngx_max_sockets = (ngx_int_t) rlmt.rlim_cur; in ngx_os_init()
113 rlmt.rlim_cur, rlmt.rlim_max); in ngx_os_status()
H A Dngx_process_cycle.c1008 struct rlimit rlmt; in ngx_worker_process_init() local
1027 rlmt.rlim_cur = (rlim_t) ccf->rlimit_nofile; in ngx_worker_process_init()
1028 rlmt.rlim_max = (rlim_t) ccf->rlimit_nofile; in ngx_worker_process_init()
1030 if (setrlimit(RLIMIT_NOFILE, &rlmt) == -1) { in ngx_worker_process_init()
1038 rlmt.rlim_cur = (rlim_t) ccf->rlimit_core; in ngx_worker_process_init()
1039 rlmt.rlim_max = (rlim_t) ccf->rlimit_core; in ngx_worker_process_init()
1041 if (setrlimit(RLIMIT_CORE, &rlmt) == -1) { in ngx_worker_process_init()
/f-stack/app/nginx-1.16.1/src/event/
H A Dngx_event.c523 struct rlimit rlmt; in ngx_event_module_init() local
525 if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) { in ngx_event_module_init()
530 if (ecf->connections > (ngx_uint_t) rlmt.rlim_cur in ngx_event_module_init()
535 (ngx_int_t) rlmt.rlim_cur : ccf->rlimit_nofile; in ngx_event_module_init()
745 struct rlimit rlmt; in ngx_event_process_init() local
747 if (getrlimit(RLIMIT_NOFILE, &rlmt) == -1) { in ngx_event_process_init()
753 cycle->files_n = (ngx_uint_t) rlmt.rlim_cur; in ngx_event_process_init()