From 6c6a19e0eaa31fb773ee7f309b32c91c1771c9b3 Mon Sep 17 00:00:00 2001 From: Elliu <goyard.louis@gmail.com> Date: Sun, 12 Jul 2020 22:15:51 +0200 Subject: [PATCH] Deleting assert in lkt main to work with a php exec --- PKGBUILD | 2 +- src/main/lkt.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index 7dbe820d..6457422e 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Maël 'Kubat' MARTIN <mael.martin31@gmail.com> pkgname=lektor -pkgver=mk7.1016.3dc6f61 +pkgver=mk7.1026.b7d5c5e pkgrel=1 pkgdesc="The lektor kara player, from the Bakaclub" arch=(x86_64 i686) diff --git a/src/main/lkt.c b/src/main/lkt.c index ecf48701..b22442fa 100644 --- a/src/main/lkt.c +++ b/src/main/lkt.c @@ -1005,12 +1005,14 @@ 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. */ @@ -1049,7 +1051,7 @@ 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__)); +// assert(!signal(SIGPIPE, sigpipe__)); <---- Commented because php exec command make the assert fail args_t args = { .host = "localhost", -- GitLab