mirror of
https://github.com/troglobit/finit.git
synced 2026-11-10 16:31:21 +00:00
Fix #35: Build fails with --disable-inetd
This patch fixes a build problem when configured without inetd support. Signed-off-by: Markus Svilans <msvilans@aeonyx.ca> Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
e3783e8bac
commit
308ae609c4
1 file changed
+4
-1
@@ -571,7 +571,9 @@ recreate:
|
|||||||
_e("Out of memory, cannot register service %s", cmd);
|
_e("Out of memory, cannot register service %s", cmd);
|
||||||
return errno = ENOMEM;
|
return errno = ENOMEM;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
#ifndef INETD_DISABLED
|
||||||
|
else {
|
||||||
if (svc_is_inetd(svc) && type != SVC_TYPE_INETD) {
|
if (svc_is_inetd(svc) && type != SVC_TYPE_INETD) {
|
||||||
_d("Service was previously inetd, deregistering ...");
|
_d("Service was previously inetd, deregistering ...");
|
||||||
inetd_del(&svc->inetd);
|
inetd_del(&svc->inetd);
|
||||||
@@ -579,6 +581,7 @@ recreate:
|
|||||||
goto recreate;
|
goto recreate;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
svc->log = log;
|
svc->log = log;
|
||||||
if (desc)
|
if (desc)
|
||||||
|
|||||||
Reference in new issue
Block a user