mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-24 19:28:09 +00:00
Merge pull request #99 from dsheets/transfused-logging
transfused: make sure to flush the logging socket when we die
This commit is contained in:
commit
0281e1999a
@ -5,6 +5,7 @@
|
|||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
|
|
||||||
@ -106,6 +107,7 @@ void die
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fd != 0) close(fd); // flush
|
||||||
exit(exit_code);
|
exit(exit_code);
|
||||||
// Nobody else should die before we terminate everything
|
// Nobody else should die before we terminate everything
|
||||||
unlock("die ctl_lock", ¶ms->ctl_lock);
|
unlock("die ctl_lock", ¶ms->ctl_lock);
|
||||||
|
Loading…
Reference in New Issue
Block a user