mirror of
https://github.com/troglobit/finit.git
synced 2026-11-01 13:10:32 +00:00
Regression, unblock (UDP) parent for terminating inetd connections
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
2dc7de3aa2
commit
865a3a7a4a
1 file changed
+5
-4
+5
-4
@@ -869,17 +869,18 @@ void service_unregister(svc_t *svc)
|
|||||||
*/
|
*/
|
||||||
if (!svc_is_inetd_conn(svc))
|
if (!svc_is_inetd_conn(svc))
|
||||||
service_stop(svc);
|
service_stop(svc);
|
||||||
|
else {
|
||||||
if (!svc_is_inetd(svc)) {
|
/* inetd connection, if UDP unblock parent */
|
||||||
if (svc_is_busy(svc->inetd.svc)) {
|
if (svc_is_busy(svc->inetd.svc)) {
|
||||||
svc_unblock(svc->inetd.svc);
|
svc_unblock(svc->inetd.svc);
|
||||||
service_step(svc->inetd.svc);
|
service_step(svc->inetd.svc);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
|
||||||
#ifdef INETD_ENABLED
|
#ifdef INETD_ENABLED
|
||||||
|
if (svc_is_inetd(svc))
|
||||||
inetd_del(&svc->inetd);
|
inetd_del(&svc->inetd);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
svc_del(svc);
|
svc_del(svc);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user