Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2010-09-15 19:24:21 +0400
committerIgor Sysoev <igor@sysoev.ru>2010-09-15 19:24:21 +0400
commit8c70e67f7b1044c9dc5df598cdb48ec18aa0853f (patch)
tree0e244c2f570e6f469cdd41e55cefeb3ad58b26cc /src/os/unix/ngx_process_cycle.c
parent9a62648f7bece8e192085330a6409db7e9580ffa (diff)
worker_rlimit_core should be off_t
Diffstat (limited to 'src/os/unix/ngx_process_cycle.c')
-rw-r--r--src/os/unix/ngx_process_cycle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c
index 82d322dfc..605102558 100644
--- a/src/os/unix/ngx_process_cycle.c
+++ b/src/os/unix/ngx_process_cycle.c
@@ -856,13 +856,13 @@ ngx_worker_process_init(ngx_cycle_t *cycle, ngx_uint_t priority)
}
}
- if (ccf->rlimit_core != NGX_CONF_UNSET_SIZE) {
+ if (ccf->rlimit_core != NGX_CONF_UNSET) {
rlmt.rlim_cur = (rlim_t) ccf->rlimit_core;
rlmt.rlim_max = (rlim_t) ccf->rlimit_core;
if (setrlimit(RLIMIT_CORE, &rlmt) == -1) {
ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
- "setrlimit(RLIMIT_CORE, %i) failed",
+ "setrlimit(RLIMIT_CORE, %O) failed",
ccf->rlimit_core);
}
}