[nginx] Added the NGX_EBADF define.
Valentin Bartenev
vbart at nginx.com
Mon Sep 2 04:10:40 UTC 2013
details: http://hg.nginx.org/nginx/rev/32847478c2c1
branches:
changeset: 5355:32847478c2c1
user: Valentin Bartenev <vbart at nginx.com>
date: Mon Sep 02 08:07:44 2013 +0400
description:
Added the NGX_EBADF define.
diffstat:
src/event/modules/ngx_select_module.c | 2 +-
src/os/unix/ngx_errno.h | 1 +
src/os/win32/ngx_errno.h | 1 +
3 files changed, 3 insertions(+), 1 deletions(-)
diffs (34 lines):
diff -r 62be77b0608f -r 32847478c2c1 src/event/modules/ngx_select_module.c
--- a/src/event/modules/ngx_select_module.c Mon Sep 02 03:45:14 2013 +0400
+++ b/src/event/modules/ngx_select_module.c Mon Sep 02 08:07:44 2013 +0400
@@ -288,7 +288,7 @@ ngx_select_process_events(ngx_cycle_t *c
ngx_log_error(level, cycle->log, err, "select() failed");
- if (err == EBADF) {
+ if (err == NGX_EBADF) {
ngx_select_repair_fd_sets(cycle);
}
diff -r 62be77b0608f -r 32847478c2c1 src/os/unix/ngx_errno.h
--- a/src/os/unix/ngx_errno.h Mon Sep 02 03:45:14 2013 +0400
+++ b/src/os/unix/ngx_errno.h Mon Sep 02 08:07:44 2013 +0400
@@ -50,6 +50,7 @@ typedef int ngx_err_t;
#define NGX_EILSEQ EILSEQ
#define NGX_ENOMOREFILES 0
#define NGX_ELOOP ELOOP
+#define NGX_EBADF EBADF
#if (NGX_HAVE_OPENAT)
#define NGX_EMLINK EMLINK
diff -r 62be77b0608f -r 32847478c2c1 src/os/win32/ngx_errno.h
--- a/src/os/win32/ngx_errno.h Mon Sep 02 03:45:14 2013 +0400
+++ b/src/os/win32/ngx_errno.h Mon Sep 02 08:07:44 2013 +0400
@@ -52,6 +52,7 @@ typedef DWORD ngx_e
#define NGX_ENOMOREFILES ERROR_NO_MORE_FILES
#define NGX_EILSEQ ERROR_NO_UNICODE_TRANSLATION
#define NGX_ELOOP 0
+#define NGX_EBADF WSAEBADF
#define NGX_EALREADY WSAEALREADY
#define NGX_EINVAL WSAEINVAL
More information about the nginx-devel
mailing list