service_unregister(): Also call inetd_del() for inetd services

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2018-01-19 16:07:22 +01:00
1 parent 4191abc79f
commit 2c904b5b44
2 files changed
+16 -6

No files matched your search

+4 -2
View File
@@ -346,8 +346,10 @@ void inetd_stop(inetd_t *inetd)
_d("Stopping %s socket watcher ...", inetd->svc->cmd);
uev_io_stop(&inetd->watcher);
/* For dgram inetd services we block the parent SVC
* and halt the watcher, so don't close the socket! */
/*
* For dgram inetd services we block the parent SVC
* and halt the watcher, so don't close the socket!
*/
if (!svc_is_busy(inetd->svc)) {
_d("Shutting down inet socket %d ...", inetd->watcher.fd);
close(inetd->watcher.fd);