Commit 2dfecd97 authored by rswindell's avatar rswindell
Browse files

Added macro for Bind Failure help message.

parent 3d471dc7
......@@ -4450,7 +4450,7 @@ void DLLCALL ftp_server(void* arg)
,sizeof(server_addr)))!=0) {
lprintf("%04d !ERROR %d (%d) binding socket to port %u"
,server_socket, result, ERROR_VALUE,startup->port);
lprintf("!Another service may be using this port");
lprintf("%04d %s", server_socket, BIND_FAILURE_HELP);
cleanup(1);
return;
}
......
......@@ -2761,7 +2761,7 @@ void DLLCALL mail_server(void* arg)
if (result != 0) {
lprintf("%04d !ERROR %d (%d) binding SMTP socket to port %u"
,server_socket, result, ERROR_VALUE, startup->smtp_port);
lprintf("!Another service may be using this port");
lprintf("%04d %s",server_socket, BIND_FAILURE_HELP);
cleanup(1);
return;
}
......@@ -2807,7 +2807,7 @@ void DLLCALL mail_server(void* arg)
if (result != 0) {
lprintf("%04d !ERROR %d (%d) binding POP3 socket to port %u"
,pop3_socket, result, ERROR_VALUE, startup->pop3_port);
lprintf("!Another service may be using this port");
lprintf("%04d %s",pop3_socket,BIND_FAILURE_HELP);
cleanup(1);
return;
}
......
......@@ -3206,7 +3206,7 @@ void DLLCALL bbs_thread(void* arg)
if(result != 0) {
lprintf("!ERROR %d (%d) binding Telnet socket to port %d"
,result, ERROR_VALUE,startup->telnet_port);
lprintf("!Another service may be using this port");
lprintf(BIND_FAILURE_HELP);
cleanup(1);
return;
}
......@@ -3263,7 +3263,7 @@ void DLLCALL bbs_thread(void* arg)
if(result != 0) {
lprintf("!ERROR %d (%d) binding RLogin socket to port %d"
,result, ERROR_VALUE,startup->rlogin_port);
lprintf("!Another service may be using this port");
lprintf(BIND_FAILURE_HELP);
cleanup(1);
return;
}
......
......@@ -66,6 +66,8 @@
#define ILLEGAL_FILENAME_CHARS "\\/|<>+[]:=\";,%"
#define BIND_FAILURE_HELP "!Another application or service may be using this port"
#ifndef __FLAT__
#define __FLAT__ /* 32-bit "flat" memory model */
#endif
......
......@@ -892,8 +892,7 @@ void DLLCALL services_thread(void* arg)
if(bind(socket, (struct sockaddr *) &addr, sizeof(addr))!=0) {
lprintf("%04d !ERROR %d binding %s socket to port %u"
,socket, ERROR_VALUE, service[i].protocol, service[i].port);
lprintf("%04d !Another application or service may be using this port"
,socket);
lprintf("%04d %s",socket,BIND_FAILURE_HELP);
close_socket(socket);
continue;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment