mirror of
https://github.com/troglobit/finit.git
synced 2026-11-21 19:51:46 +00:00
Fix regression in 32b9096, only pick next :ID for inetd services
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
1 parent
7362e6d00a
commit
d6b2ac94dd
1 file changed
+4
-1
+4
-1
@@ -633,12 +633,15 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], struct timeval
|
|||||||
svc = inetd_find_svc(cmd, service, proto);
|
svc = inetd_find_svc(cmd, service, proto);
|
||||||
if (svc)
|
if (svc)
|
||||||
goto inetd_setup;
|
goto inetd_setup;
|
||||||
|
|
||||||
|
if (id <= 0)
|
||||||
|
id = svc_next_id(cmd);
|
||||||
}
|
}
|
||||||
recreate:
|
recreate:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (id <= 0)
|
if (id <= 0)
|
||||||
id = svc_next_id(cmd);
|
id = 1;
|
||||||
|
|
||||||
svc = svc_find(cmd, id);
|
svc = svc_find(cmd, id);
|
||||||
if (!svc) {
|
if (!svc) {
|
||||||
|
|||||||
Reference in new issue
Block a user