Mercurial > hg > nginx
comparison src/core/ngx_cycle.c @ 333:be40e9893a19
nginx-0.0.3-2004-05-11-20:16:13 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 11 May 2004 16:16:13 +0000 |
parents | d621239c30f7 |
children | ca9a7f8c86da |
comparison
equal
deleted
inserted
replaced
332:159dd60d257a | 333:be40e9893a19 |
---|---|
467 ngx_memzero(&file, sizeof(ngx_file_t)); | 467 ngx_memzero(&file, sizeof(ngx_file_t)); |
468 file.name = (ngx_inherited && getppid() > 1) ? ccf->newpid : ccf->pid; | 468 file.name = (ngx_inherited && getppid() > 1) ? ccf->newpid : ccf->pid; |
469 file.log = cycle->log; | 469 file.log = cycle->log; |
470 | 470 |
471 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDWR, | 471 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDWR, |
472 NGX_FILE_CREATE_OR_OPEN); | 472 NGX_FILE_CREATE_OR_OPEN|NGX_FILE_TRUNCATE); |
473 | 473 |
474 if (file.fd == NGX_INVALID_FILE) { | 474 if (file.fd == NGX_INVALID_FILE) { |
475 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, | 475 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, |
476 ngx_open_file_n " \"%s\" failed", file.name.data); | 476 ngx_open_file_n " \"%s\" failed", file.name.data); |
477 return NGX_ERROR; | 477 return NGX_ERROR; |