mirror of
https://github.com/troglobit/finit.git
synced 2026-10-31 13:00:32 +00:00
service_unregister(): Also call inetd_del() for inetd services
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
4191abc79f
commit
2c904b5b44
2 files changed
+16
-6
No files matched your search
+4
-2
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user