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:
parent
51d80b73ce
commit
c78d71d39d
1 changed files with 8 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue