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

Fixed order of function calls for log-init

This commit is contained in:
Dennis Potter 2018-07-05 10:09:20 +02:00
parent a44ec237f9
commit 5f2be6d46c

View file

@ -305,10 +305,6 @@ check: if (optarg == endptr)
if (ret)
error("Failed to initialize log");
ret = log_open(&sn.log);
if (ret)
error("Failed to start log");
ret = signals_init(quit);
if (ret)
error("Failed to initialize signals");
@ -321,6 +317,10 @@ check: if (optarg == endptr)
if (ret)
error("Failed to parse configuration");
ret = log_open(&sn.log);
if (ret)
error("Failed to start log");
ret = memory_init(sn.hugepages);
if (ret)
error("Failed to initialize memory");