diff options
Diffstat (limited to 'src/os/unix')
-rw-r--r-- | src/os/unix/ngx_process_cycle.c | 6 | ||||
-rw-r--r-- | src/os/unix/ngx_time.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 6ee6dbec6..61cf0d54f 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -82,13 +82,13 @@ void ngx_master_process_cycle(ngx_cycle_t *cycle, ngx_master_ctx_t *ctx) /* * we have to limit the maximum life time of the worker processes - * by 1 month because our millisecond event timer is limited - * by 49 days on 32-bit platforms + * by 10 days because our millisecond event timer is limited + * by 24 days on 32-bit platforms */ itv.it_interval.tv_sec = 0; itv.it_interval.tv_usec = 0; - itv.it_value.tv_sec = 30 * 24 * 60 * 60; + itv.it_value.tv_sec = 10 * 24 * 60 * 60; itv.it_value.tv_usec = 0; if (setitimer(ITIMER_REAL, &itv, NULL) == -1) { diff --git a/src/os/unix/ngx_time.h b/src/os/unix/ngx_time.h index 45e81ea85..c84486ed5 100644 --- a/src/os/unix/ngx_time.h +++ b/src/os/unix/ngx_time.h @@ -8,7 +8,7 @@ typedef uint64_t ngx_epoch_msec_t; -typedef u_int ngx_msec_t; +typedef ngx_int_t ngx_msec_t; #define NGX_MAX_MSEC (ngx_msec_t) -1 typedef struct tm ngx_tm_t; |