Merge pull request #99 from dsheets/transfused-logging

transfused: make sure to flush the logging socket when we die
This commit is contained in:
David Sheets 2016-04-16 18:59:22 +01:00
commit 0281e1999a

View File

@ -5,6 +5,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <pthread.h>
#include <unistd.h>
#include <syslog.h>
@ -106,6 +107,7 @@ void die
}
}
if (fd != 0) close(fd); // flush
exit(exit_code);
// Nobody else should die before we terminate everything
unlock("die ctl_lock", &params->ctl_lock);