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
path: root/src/event
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2006-03-15 12:53:04 +0300
committerIgor Sysoev <igor@sysoev.ru>2006-03-15 12:53:04 +0300
commit8fea885cbf8d63d67ee6b7ea82e3e0438182ac36 (patch)
tree232fb0db90b71aeb124c970bf619f3dd1de19aac /src/event
parent5e40d785cbb896a9ed218c6a599863f2a82aa721 (diff)
nginx-0.3.33-RELEASE importrelease-0.3.33
*) Feature: the "http_503" parameter of the "proxy_next_upstream" or "fastcgi_next_upstream" directives. *) Bugfix: ngx_http_perl_module did not work with inlined in the configuration code, if it was not started with the "sub" word. *) Bugfix: in the "post_action" directive.
Diffstat (limited to 'src/event')
-rw-r--r--src/event/modules/ngx_kqueue_module.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/event/modules/ngx_kqueue_module.c b/src/event/modules/ngx_kqueue_module.c
index f3ca737be..af9167593 100644
--- a/src/event/modules/ngx_kqueue_module.c
+++ b/src/event/modules/ngx_kqueue_module.c
@@ -491,16 +491,19 @@ ngx_kqueue_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
} else {
+ ts.tv_sec = timer / 1000;
+ ts.tv_nsec = (timer % 1000) * 1000000;
+
/*
- * 64-bit MacOSX kernel has the bug: kernel level ts.tv_nsec is
+ * 64-bit Darwin kernel has the bug: kernel level ts.tv_nsec is
* the int32_t while user level ts.tv_nsec is the long (64-bit),
* so on the big endian PowerPC all nanoseconds are lost.
- * NGX_MACOSX_KEVENT_BUG_SHIFT on these machines is "<< 32".
*/
- ts.tv_sec = timer / 1000;
- ts.tv_nsec = (long) ((timer % 1000) * 1000000)
- NGX_MACOSX_KEVENT_BUG_SHIFT;
+#if (NGX_DARWIN_KEVENT_BUG)
+ ts.tv_nsec <<= 32;
+#endif
+
tp = &ts;
}