]> git.pond.sub.org Git - empserver/blobdiff - src/lib/empthread/posix.c
Fix trailing whitespace
[empserver] / src / lib / empthread / posix.c
index 015080ed3e9be1e6f904b643dc7c0737d96fb0d8..4e62d568ded96e4dc86d355c336a61840447d4bd 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  Empire - A multi-player, client/server Internet based war game.
- *  Copyright (C) 1986-2006, Dave Pare, Jeff Bailey, Thomas Ruschak,
+ *  Copyright (C) 1986-2008, Dave Pare, Jeff Bailey, Thomas Ruschak,
  *                           Ken Stevens, Steve McClure
  *
  *  This program is free software; you can redistribute it and/or modify
@@ -26,7 +26,7 @@
  *  ---
  *
  *  posix.c: Thread-related code common to POSIX systems
- * 
+ *
  *  Known contributors to this file:
  *     Markus Armbruster, 2006
  */
@@ -34,7 +34,9 @@
 #include <config.h>
 
 #include <signal.h>
+#include <unistd.h>
 #include "empthread.h"
+#include "journal.h"
 #include "prototypes.h"
 
 static void panic(int sig);
@@ -79,6 +81,7 @@ panic(int sig)
     logerror("server received fatal signal %d", sig);
     log_last_commands();
     ef_fin_srv();
+    journal_shutdown();
     /* End of unsafe code */
 
     if (CANT_HAPPEN(sig != SIGBUS && sig != SIGSEGV