Fix errors when reporting who we are scheduled by.
This commit is contained in:
parent
cdd3881c1b
commit
1443fee901
@ -791,10 +791,12 @@ static void svc_start(bool deps)
|
|||||||
rc_service_schedule_start(svc->value, service);
|
rc_service_schedule_start(svc->value, service);
|
||||||
use_services = rc_deptree_depend(deptree, "iprovide",
|
use_services = rc_deptree_depend(deptree, "iprovide",
|
||||||
svc->value);
|
svc->value);
|
||||||
|
if (use_services) {
|
||||||
TAILQ_FOREACH (svc2, use_services, entries)
|
TAILQ_FOREACH (svc2, use_services, entries)
|
||||||
rc_service_schedule_start(svc2->value, service);
|
rc_service_schedule_start(svc2->value, service);
|
||||||
rc_stringlist_free(use_services);
|
rc_stringlist_free(use_services);
|
||||||
use_services = NULL;
|
use_services = NULL;
|
||||||
|
}
|
||||||
len += strlen(svc->value) + 2;
|
len += strlen(svc->value) + 2;
|
||||||
n++;
|
n++;
|
||||||
}
|
}
|
||||||
@ -804,13 +806,13 @@ static void svc_start(bool deps)
|
|||||||
TAILQ_FOREACH(svc, tmplist, entries) {
|
TAILQ_FOREACH(svc, tmplist, entries) {
|
||||||
if (p != tmp)
|
if (p != tmp)
|
||||||
p += snprintf(p, len, ", ");
|
p += snprintf(p, len, ", ");
|
||||||
p += snprintf(p, len, "%s", svc->value);
|
p += snprintf(p, len - (p - tmp), "%s", svc->value);
|
||||||
}
|
}
|
||||||
free(tmp);
|
|
||||||
rc_stringlist_free(tmplist);
|
rc_stringlist_free(tmplist);
|
||||||
tmplist = NULL;
|
tmplist = NULL;
|
||||||
ewarnx("WARNING: %s is scheduled to start when %s has started",
|
ewarnx("WARNING: %s is scheduled to start when %s has started",
|
||||||
applet, tmp);
|
applet, tmp);
|
||||||
|
free(tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
rc_stringlist_free(services);
|
rc_stringlist_free(services);
|
||||||
|
Loading…
Reference in New Issue
Block a user