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:
parent
936f64a673
commit
19eaa85d6b
1 changed files with 8 additions and 8 deletions
16
src/pipe.c
16
src/pipe.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue