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 <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson
2018-01-25 19:14:59 +01:00
parent 06a5b43005
commit 2dc7de3aa2
+2 -2
View File
@@ -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