Regression, unblock (UDP) parent for terminating inetd connections
@@ -869,17 +869,18 @@ void service_unregister(svc_t *svc)
*/
if (!svc_is_inetd_conn(svc))
service_stop(svc);
-
- if (!svc_is_inetd(svc)) {
+ else {
+ /* inetd connection, if UDP unblock parent */
if (svc_is_busy(svc->inetd.svc)) {
svc_unblock(svc->inetd.svc);
service_step(svc->inetd.svc);
}
- } else {
+ }
+
#ifdef INETD_ENABLED
+ if (svc_is_inetd(svc))
inetd_del(&svc->inetd);
#endif
- }
svc_del(svc);
}
