summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nxt_main.h4
-rw-r--r--src/nxt_main_process.c29
2 files changed, 15 insertions, 18 deletions
diff --git a/src/nxt_main.h b/src/nxt_main.h
index 760384ea..dc821e07 100644
--- a/src/nxt_main.h
+++ b/src/nxt_main.h
@@ -11,8 +11,8 @@
#include <nxt_auto_config.h>
-#define NXT_VERSION "1.7.1"
-#define NXT_VERNUM 10701
+#define NXT_VERSION "1.8"
+#define NXT_VERNUM 10800
#define NXT_SERVER "Unit/" NXT_VERSION
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 819ed44c..a4c3f119 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -1116,24 +1116,23 @@ nxt_main_listening_socket(nxt_sockaddr_t *sa, nxt_listening_socket_t *ls)
break;
}
- goto next;
- }
-
+ } else
#endif
+ {
+ switch (err) {
- switch (err) {
-
- case EACCES:
- ls->error = NXT_SOCKET_ERROR_PORT;
- break;
+ case EACCES:
+ ls->error = NXT_SOCKET_ERROR_PORT;
+ break;
- case EADDRINUSE:
- ls->error = NXT_SOCKET_ERROR_INUSE;
- break;
+ case EADDRINUSE:
+ ls->error = NXT_SOCKET_ERROR_INUSE;
+ break;
- case EADDRNOTAVAIL:
- ls->error = NXT_SOCKET_ERROR_NOADDR;
- break;
+ case EADDRNOTAVAIL:
+ ls->error = NXT_SOCKET_ERROR_NOADDR;
+ break;
+ }
}
ls->end = nxt_sprintf(ls->start, ls->end, "bind(\\\"%*s\\\") failed %E",
@@ -1143,8 +1142,6 @@ nxt_main_listening_socket(nxt_sockaddr_t *sa, nxt_listening_socket_t *ls)
#if (NXT_HAVE_UNIX_DOMAIN)
-next:
-
if (sa->u.sockaddr.sa_family == AF_UNIX) {
char *filename;
mode_t access;