OSDN Git Service
(root)
/
mmo
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbe0282
)
linuxプリプロセッサをつける
author
shibacow
<shibacow@users.sourceforge.jp>
Fri, 14 Sep 2012 19:12:10 +0000
(12:12 -0700)
committer
shibacow
<shibacow@users.sourceforge.jp>
Fri, 14 Sep 2012 19:12:10 +0000
(12:12 -0700)
server/main.cpp
patch
|
blob
|
history
diff --git
a/server/main.cpp
b/server/main.cpp
index
0643fbc
..
054b500
100644
(file)
--- a/
server/main.cpp
+++ b/
server/main.cpp
@@
-16,8
+16,10
@@
#include "../common/Logger.hpp"
#include "Config.hpp"
#include "Account.hpp"
+#ifdef __linux__
#include "ServerSigHandler.hpp"
#include <csignal>
+#endif
#ifdef _WIN32
#include <boost/interprocess/windows_shared_memory.hpp>
@@
-318,7
+320,9
@@
int main(int argc, char* argv[])
});
}
#endif
+ #ifdef __linux__
network::ServerSigHandler handler(SIGINT,&server);
+ #endif
server.Start(callback);
} catch (std::exception& e) {