summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/haproxy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/haproxy.c b/src/haproxy.c
index e656859e1..68c8b4b47 100644
--- a/src/haproxy.c
+++ b/src/haproxy.c
@@ -950,8 +950,10 @@ int main(int argc, char **argv)
/* Note: start_proxies() sends an alert when it fails. */
if ((err & ~ERR_WARN) != ERR_NONE) {
- if (retry != MAX_START_RETRIES && nb_oldpids)
+ if (retry != MAX_START_RETRIES && nb_oldpids) {
+ protocol_unbind_all(); /* cleanup everything we can */
tell_old_pids(SIGTTIN);
+ }
exit(1);
}