Searched refs:rlmt (Results 1 – 3 of 3) sorted by relevance
19 struct rlimit rlmt; variable77 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()
1008 struct rlimit rlmt; in ngx_worker_process_init() local1027 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()
523 struct rlimit rlmt; in ngx_event_module_init() local525 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() local747 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()