summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEd Tanous <ed.tanous@intel.com>2018-03-16 13:08:50 -0700
committerEd Tanous <ed.tanous@intel.com>2018-04-22 18:14:58 +0000
commit9e6e1b24e27da2d5c728f3666fca6108bd37b360 (patch)
tree8c0249584334cbee8669178e33d4259017474c1f /src
parentac093318ac41bb5306d19d01824f79d0d3488840 (diff)
downloadbmcweb-9e6e1b24e27da2d5c728f3666fca6108bd37b360.tar.gz
bmcweb-9e6e1b24e27da2d5c728f3666fca6108bd37b360.zip
Remove multithreaded code, and make crow use a single thread
Change-Id: I39e9ba84ab3464cf75b5bba82badb729525bf3b9 Signed-off-by: Ed Tanous <ed.tanous@intel.com>
Diffstat (limited to 'src')
-rw-r--r--src/webserver_main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webserver_main.cpp b/src/webserver_main.cpp
index 53dd127..b84c94c 100644
--- a/src/webserver_main.cpp
+++ b/src/webserver_main.cpp
@@ -1,3 +1,4 @@
+#include <systemd/sd-daemon.h>
#include <dbus/connection.hpp>
#include <dbus_monitor.hpp>
#include <dbus_singleton.hpp>
@@ -16,7 +17,6 @@
#include "webserver_common.hpp"
#include <crow/app.h>
#include <boost/asio.hpp>
-#include <systemd/sd-daemon.h>
constexpr int defaultPort = 18080;
@@ -31,7 +31,7 @@ void setup_socket(crow::Crow<Middlewares...>& app) {
app.socket(SD_LISTEN_FDS_START);
} else {
CROW_LOG_INFO << "bad incoming socket, starting webserver on port "
- << defaultPort;
+ << defaultPort;
app.port(defaultPort);
}
} else {
@@ -78,4 +78,5 @@ int main(int argc, char** argv) {
redfish::RedfishService redfish(app);
app.run();
+ io->run();
}
OpenPOWER on IntegriCloud