diff --git a/src/main/lkt.c b/src/main/lkt.c
index 44a444117142b4e71fb155b895cdc9a4ebeef79c..6fc02bbe0d69ec4c08ad734d28eae98e6db1e363 100644
--- a/src/main/lkt.c
+++ b/src/main/lkt.c
@@ -1060,14 +1060,12 @@ static struct lkt_cmd_opt options_[] = {
 
 /* The sigpipe function, if SIGPIPE signal is sent. */
 
-/*   <--- Commented to prevoid "define but not user" after commenting the corresponding assert in main
 static void
 sigpipe__(int sig)
 {
     LOG_ERROR("GENERAL", "Exit because of signal sigpipe (%d)", sig);
     exit(EXIT_FAILURE);
 }
-*/
 
 /* Functions declarations. */
 
@@ -1106,7 +1104,10 @@ main(int argc, const char **argv)
     log_level = ERROR;
     executable_name = "lkt";
     assert(NULL != setlocale(LC_ALL, "en_US.UTF-8"));   /* BECAUSE! */
-//    assert(!signal(SIGPIPE, sigpipe__));    <---- Commented because php exec command make the assert fail
+    if (signal(SIGPIPE, sigpipe__))
+    {
+        // LOG_ERROR("SYS", "%s", "Failed to install handler for SIGPIPE signal");
+    }
 
     args_t args = {
         .host = "localhost",