summaryrefslogtreecommitdiffstats
path: root/messagebus_test/src/tests/error/cpp-server.cpp
diff options
context:
space:
mode:
authorHåvard Pettersen <havardpe@oath.com>2022-04-06 12:18:08 +0000
committerHåvard Pettersen <havardpe@oath.com>2022-04-08 13:45:13 +0000
commit9fbcf76d088740aacf535e6482f86c833cfae871 (patch)
treec62dcd0f9cdcee9876b37c60f741958c14147f80 /messagebus_test/src/tests/error/cpp-server.cpp
parent69454cef2fe53694eb5541e5f622a4e973c081bf (diff)
remove FastOS_Application
fixup (per application): - maybe ignore SIGPIPE - wire argc/argv untangle Vespa Test Framework strip down deprecated TestApp
Diffstat (limited to 'messagebus_test/src/tests/error/cpp-server.cpp')
-rw-r--r--messagebus_test/src/tests/error/cpp-server.cpp18
1 files changed, 3 insertions, 15 deletions
diff --git a/messagebus_test/src/tests/error/cpp-server.cpp b/messagebus_test/src/tests/error/cpp-server.cpp
index e6be163a366..cbf07bd5f20 100644
--- a/messagebus_test/src/tests/error/cpp-server.cpp
+++ b/messagebus_test/src/tests/error/cpp-server.cpp
@@ -8,7 +8,7 @@
#include <vespa/messagebus/errorcode.h>
#include <vespa/vespalib/util/time.h>
#include <thread>
-#include <vespa/fastos/app.h>
+#include <vespa/vespalib/util/signalhandler.h>
using namespace mbus;
@@ -42,15 +42,8 @@ Server::handleMessage(Message::UP msg) {
_session->reply(std::move(reply));
}
-class App : public FastOS_Application
-{
-public:
- int Main() override;
-};
-
-int
-App::Main()
-{
+int main(int, char **) {
+ vespalib::SignalHandler::PIPE.ignore();
RPCMessageBus mb(ProtocolSet().add(std::make_shared<SimpleProtocol>()),
RPCNetworkParams(config::ConfigUri("file:slobrok.cfg"))
.setIdentity(Identity("server/cpp")),
@@ -61,8 +54,3 @@ App::Main()
}
return 0;
}
-
-int main(int argc, char **argv) {
- App app;
- return app.Entry(argc, argv);
-}