diff --git a/locale/tr/LC_MESSAGES/libmp.po b/locale/tr/LC_MESSAGES/libmp.po index 68fd07d..99ad9e5 100644 --- a/locale/tr/LC_MESSAGES/libmp.po +++ b/locale/tr/LC_MESSAGES/libmp.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2024-08-09 00:35+0300\n" +"POT-Creation-Date: 2024-08-09 01:27+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" diff --git a/src/ctx/serve.c b/src/ctx/serve.c index 07e776c..2bfb0a4 100644 --- a/src/ctx/serve.c +++ b/src/ctx/serve.c @@ -160,6 +160,7 @@ end: } void __lm_ctx_serve_signal(int sig){ + pdebug(__func__, "received interrupt, stopping the server"); lm_thpool_stop(&__serve_tp); lm_mptp_server_close(__serve_sock); exit(1); @@ -191,6 +192,8 @@ bool lm_ctx_serve(lm_ctx_t *ctx, char *addr, uint8_t threads, __sighandler_t han if(NULL == handler) handler = __lm_ctx_serve_signal; + + signal(SIGPIPE, SIG_IGN); signal(SIGINT, handler); while ((c = lm_mptp_server_accept(__serve_sock, &saddr)) != -1) {