From 91f5f4392ecca07b71f774e4dbe1093fa70369b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Wed, 27 Apr 2022 17:43:24 +0200 Subject: [PATCH] Properly handle 'EINTR' for signals for RESTAPI scripts #3838 --- lib/proxysql_utils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/proxysql_utils.cpp b/lib/proxysql_utils.cpp index 64da63c2e..567435562 100644 --- a/lib/proxysql_utils.cpp +++ b/lib/proxysql_utils.cpp @@ -222,7 +222,7 @@ int wexecvp( int select_err = select(maxfd + 1, &read_fds, NULL, NULL, &select_to); // Unexpected error while executing 'select' - if (select_err < 0) { + if (select_err < 0 && errno != EINTR) { pipe_err = -5; // Backup read errno errno_cpy = errno;