From 2dc7de3aa21c4ccbac2762b8d183da1788bf27c0 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Thu, 25 Jan 2018 19:03:41 +0100 Subject: [PATCH] Make sure to unblock inetd UDP svc when connection terminates When an UDP inetd connection terminates we must make sure to unblock the parent, which is (currently) blocked during the transaction. This patch is a fix to a regression introduced in 2c904b5, for v3.1 Signed-off-by: Joachim Nilsson --- src/service.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/service.c b/src/service.c index b965ede9..d33f67e5 100644 --- a/src/service.c +++ b/src/service.c @@ -870,12 +870,12 @@ void service_unregister(svc_t *svc) if (!svc_is_inetd_conn(svc)) service_stop(svc); - if (svc_is_inetd(svc)) { + if (!svc_is_inetd(svc)) { if (svc_is_busy(svc->inetd.svc)) { svc_unblock(svc->inetd.svc); service_step(svc->inetd.svc); } - + } else { #ifdef INETD_ENABLED inetd_del(&svc->inetd); #endif