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

signal: use proper timestamps

This commit is contained in:
Steffen Vogel 2017-07-13 22:13:58 +02:00
parent 51d80b73ce
commit c78d71d39d

View file

@ -78,6 +78,10 @@ static void quit(int signal, siginfo_t *sinfo, void *ctx)
if (ret)
error("Failed to destroy node");
ret = log_stop(&l);
if (ret)
error("Failed to stop log");
free(t);
info(CLR_GRN("Goodbye!"));
@ -94,6 +98,10 @@ int main(int argc, char *argv[])
if (ret)
error("Failed to initialize log");
ret = log_start(&l);
if (ret)
error("Failed to start log");
ret = signals_init(quit);
if (ret)
error("Failed to intialize signals");