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

minor bug fixes

This commit is contained in:
Steffen Vogel 2017-03-07 08:05:04 -04:00
parent 3573932df8
commit b28b784684
3 changed files with 8 additions and 4 deletions

View file

@ -59,7 +59,7 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
cfg_destroy(&cfg);
info(GRN("Goodbye!"));
exit(EXIT_SUCCESS);
_exit(EXIT_SUCCESS);
}
static void usage()
@ -217,7 +217,7 @@ int main(int argc, char *argv[])
ret = node_type_init(node->_vt, argc-optind, argv+optind, config_root_setting(&cfg.cfg));
if (ret)
error("Failed to intialize node: %s", node_name(node));
error("Failed to intialize node type: %s", node_name(node));
ret = node_start(node);
if (ret)

View file

@ -141,6 +141,8 @@ check: if (optarg == endptr)
if (tfd < 0)
serror("Failed to create timer");
}
else
tfd = -1;
start = time_now();

View file

@ -12,9 +12,11 @@
#include <villas/memory.h>
int main(int argc, char *argv[]) {
struct criterion_test_set *tests = criterion_initialize();
info("Initialize memory system");
struct criterion_test_set *tests = criterion_initialize();
struct log log;
log_init(&log, V, LOG_ALL);
memory_init();
int result = 0;