Skip to content
Snippets Groups Projects
Commit 787994bc authored by Eric Vidal's avatar Eric Vidal :speech_balloon:
Browse files

do not append earlier service at graph

parent 07195a0d
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,7 @@
#include <66/state.h>
#include <66/graph.h>
#include <66/constants.h>
#include <66/enum.h>
/** rewrite depends/requiredby of each service
* found on the system */
......@@ -43,7 +44,7 @@ void sanitize_graph(ssexec_t *info)
resolve_service_t ares[SS_MAX_SERVICE + 1] ;
graph_t graph = GRAPH_ZERO ;
FLAGS_SET(flag, STATE_FLAGS_TOPROPAGATE|STATE_FLAGS_TOPARSE|STATE_FLAGS_WANTUP|STATE_FLAGS_WANTDOWN|STATE_FLAGS_ISEARLIER) ;
FLAGS_SET(flag, STATE_FLAGS_TOPROPAGATE|STATE_FLAGS_TOPARSE|STATE_FLAGS_WANTUP|STATE_FLAGS_WANTDOWN) ;
/** build the graph of the entire system */
graph_build_service(&graph, ares, &areslen, info, flag) ;
......
......@@ -204,7 +204,7 @@ void sanitize_init(unsigned int *alist, unsigned int alen, graph_t *g, resolve_s
for (pos = 0 ; pos < nsv ; pos++) {
if (ares[real[pos]].type == TYPE_CLASSIC) {
if (ares[real[pos]].type == TYPE_CLASSIC && !ares[real[pos]].earlier) {
fake = pos ;
char *sa = ares[real[pos]].sa.s ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment