mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-05-05 09:18:10 +00:00
[BUG] we must not exit if protocol binding only returns a warning
Right now, protocol binding cannot return a warning, but when this will happen, we must not exit but just print the warning.
This commit is contained in:
parent
7b723efca3
commit
0a3b9d90d3
@ -944,7 +944,7 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Note: start_proxies() sends an alert when it fails. */
|
/* Note: start_proxies() sends an alert when it fails. */
|
||||||
if (err != ERR_NONE) {
|
if ((err & ~ERR_WARN) != ERR_NONE) {
|
||||||
if (retry != MAX_START_RETRIES && nb_oldpids)
|
if (retry != MAX_START_RETRIES && nb_oldpids)
|
||||||
tell_old_pids(SIGTTIN);
|
tell_old_pids(SIGTTIN);
|
||||||
exit(1);
|
exit(1);
|
||||||
@ -957,7 +957,7 @@ int main(int argc, char **argv)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (protocol_bind_all() != ERR_NONE) {
|
if ((protocol_bind_all() & ~ERR_WARN) != ERR_NONE) {
|
||||||
Alert("[%s.main()] Some protocols failed to start their listeners! Exiting.\n", argv[0]);
|
Alert("[%s.main()] Some protocols failed to start their listeners! Exiting.\n", argv[0]);
|
||||||
protocol_unbind_all(); /* cleanup everything we can */
|
protocol_unbind_all(); /* cleanup everything we can */
|
||||||
if (nb_oldpids)
|
if (nb_oldpids)
|
||||||
|
Loading…
Reference in New Issue
Block a user