comparison src/os/unix/ngx_process_cycle.c @ 315:39b6f2df45c0

nginx-0.0.3-2004-04-14-21:44:28 import
author Igor Sysoev <igor@sysoev.ru>
date Wed, 14 Apr 2004 17:44:28 +0000
parents 11ff50a35d6d
children 1308b98496a2
comparison
equal deleted inserted replaced
314:d71c87d11b16 315:39b6f2df45c0
80 "worker process", NGX_PROCESS_RESPAWN); 80 "worker process", NGX_PROCESS_RESPAWN);
81 } 81 }
82 82
83 /* 83 /*
84 * we have to limit the maximum life time of the worker processes 84 * we have to limit the maximum life time of the worker processes
85 * by 1 month because our millisecond event timer is limited 85 * by 10 days because our millisecond event timer is limited
86 * by 49 days on 32-bit platforms 86 * by 24 days on 32-bit platforms
87 */ 87 */
88 88
89 itv.it_interval.tv_sec = 0; 89 itv.it_interval.tv_sec = 0;
90 itv.it_interval.tv_usec = 0; 90 itv.it_interval.tv_usec = 0;
91 itv.it_value.tv_sec = 30 * 24 * 60 * 60; 91 itv.it_value.tv_sec = 10 * 24 * 60 * 60;
92 itv.it_value.tv_usec = 0; 92 itv.it_value.tv_usec = 0;
93 93
94 if (setitimer(ITIMER_REAL, &itv, NULL) == -1) { 94 if (setitimer(ITIMER_REAL, &itv, NULL) == -1) {
95 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno, 95 ngx_log_error(NGX_LOG_ALERT, cycle->log, ngx_errno,
96 "setitimer() failed"); 96 "setitimer() failed");