comparison src/event/modules/ngx_devpoll_module.c @ 518:86dad910eeb6 NGINX_0_8_11

nginx 0.8.11 *) Change: directive "gzip_disable msie6" enables gzipping for MSIE 6.0 SV1. *) Feature: file AIO support on FreeBSD and Linux. *) Feature: the "directio_alignment" directive.
author Igor Sysoev <http://sysoev.ru>
date Fri, 28 Aug 2009 00:00:00 +0400
parents f39b9e29530d
children be4f34123024
comparison
equal deleted inserted replaced
517:15b5cddc5190 518:86dad910eeb6
367 dvp.dp_fds = event_list; 367 dvp.dp_fds = event_list;
368 dvp.dp_nfds = (int) nevents; 368 dvp.dp_nfds = (int) nevents;
369 dvp.dp_timeout = timer; 369 dvp.dp_timeout = timer;
370 events = ioctl(dp, DP_POLL, &dvp); 370 events = ioctl(dp, DP_POLL, &dvp);
371 371
372 if (events == -1) { 372 err = (events == -1) ? ngx_errno : 0;
373 err = ngx_errno;
374 } else {
375 err = 0;
376 }
377 373
378 if (flags & NGX_UPDATE_TIME) { 374 if (flags & NGX_UPDATE_TIME) {
379 ngx_time_update(0, 0); 375 ngx_time_update(0, 0);
380 } 376 }
381 377