mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 05:22:48 +07:00
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:
+2
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user