Make sure code compiles on Ubuntu 12.04 with boost 1.46
Work with permissions in boost::filesystem was introduced in boost 1.49
diff --git a/server/server.cpp b/server/server.cpp
index df790ed..11b74cb 100644
--- a/server/server.cpp
+++ b/server/server.cpp
@@ -20,7 +20,7 @@
server::server(const std::string& address, const std::string& port,
const std::string& doc_root)
: io_service_(),
- signals_(io_service_),
+ // signals_(io_service_),
acceptor_(io_service_),
connection_manager_(),
new_connection_(),
@@ -29,12 +29,12 @@
// Register to handle the signals that indicate when the server should exit.
// It is safe to register for the same signal multiple times in a program,
// provided all registration for the specified signal is made through Asio.
- signals_.add(SIGINT);
- signals_.add(SIGTERM);
-#if defined(SIGQUIT)
- signals_.add(SIGQUIT);
-#endif // defined(SIGQUIT)
- signals_.async_wait(boost::bind(&server::handle_stop, this));
+// signals_.add(SIGINT);
+// signals_.add(SIGTERM);
+//#if defined(SIGQUIT)
+// signals_.add(SIGQUIT);
+//#endif // defined(SIGQUIT)
+// signals_.async_wait(boost::bind(&server::handle_stop, this));
// Open the acceptor with the option to reuse the address (i.e. SO_REUSEADDR).
boost::asio::ip::tcp::resolver resolver(io_service_);