]> git.pond.sub.org Git - empserver/commitdiff
[_WIN32] (panic): Unused under Windows, remove from build.
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 21 Dec 2004 01:56:57 +0000 (01:56 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 21 Dec 2004 01:56:57 +0000 (01:56 +0000)
src/server/main.c

index 77c917f9e3ab9822f32d4d71b5bd0803b945c7b5..f7e76f52292a67434cc5cf44e14a3111e277bfa4 100644 (file)
@@ -296,10 +296,10 @@ close_files(void)
 }
 
 /* we're going down.  try to close the files at least */
+#if !defined(_WIN32)
 void
 panic(int sig)
 {
-#if !defined(_WIN32)
 #ifdef POSIXSIGNALS
     struct sigaction act;
 
@@ -316,7 +316,6 @@ panic(int sig)
     signal(SIGILL, SIG_DFL);
     signal(SIGFPE, SIG_DFL);
 #endif /* POSIXSIGNALS */
-#endif /* _WIN32 */
     logerror("server received fatal signal %d", sig);
     log_last_commands();
     close_files();
@@ -326,6 +325,7 @@ panic(int sig)
     if (raise(sig))
        _exit(1);
 }
+#endif /* _WIN32 */
 
 void
 shutdwn(int sig)