1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

pipe: fix initialization order

This commit is contained in:
Steffen Vogel 2017-10-18 12:49:52 +02:00
parent 936f64a673
commit 19eaa85d6b

View file

@ -293,6 +293,14 @@ check: if (optarg == endptr)
if (ret)
error("Failed to initialize signals");
ret = super_node_init(&sn);
if (ret)
error("Failed to initialize super-node");
ret = super_node_parse_uri(&sn, configfile);
if (ret)
error("Failed to parse configuration");
ret = memory_init(sn.hugepages);
if (ret)
error("Failed to initialize memory");
@ -313,14 +321,6 @@ check: if (optarg == endptr)
if (ret)
error("Failed to open IO");
ret = super_node_init(&sn);
if (ret)
error("Failed to initialize super-node");
ret = super_node_parse_uri(&sn, configfile);
if (ret)
error("Failed to parse configuration");
node = list_lookup(&sn.nodes, nodestr);
if (!node)
error("Node '%s' does not exist!", nodestr);