From 704a978f281c80b54725e0c9f54d66ca7963db72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 23 Jul 2016 20:59:02 +0000 Subject: [PATCH] Trying to fix a timeout issue --- lib/MySQL_Monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MySQL_Monitor.cpp b/lib/MySQL_Monitor.cpp index f8db46576..66516134c 100644 --- a/lib/MySQL_Monitor.cpp +++ b/lib/MySQL_Monitor.cpp @@ -85,7 +85,7 @@ static int wait_for_mysql(MYSQL *mysql, int status) { timeout = 10; res = poll(&pfd, 1, timeout); if (res == 0) - return MYSQL_WAIT_TIMEOUT; + return MYSQL_WAIT_TIMEOUT | status; else if (res < 0) return MYSQL_WAIT_TIMEOUT; else {