--- a/src/relpipe-tr-httpd.cpp Fri Apr 08 22:38:45 2022 +0200
+++ b/src/relpipe-tr-httpd.cpp Sat Apr 09 17:50:46 2022 +0200
@@ -29,6 +29,7 @@
#include <relpipe/writer/RelationalWriter.h>
#include <relpipe/writer/RelpipeWriterException.h>
#include <relpipe/writer/Factory.h>
+#include <unistd.h>
#include "HTTPDHandler.h"
#include "CLIParser.h"
@@ -57,9 +58,7 @@
HttpdHandler handler(writer, configuration, httpServer);
reader->addHandler(&handler);
reader->process();
-
resultCode = CLI::EXIT_CODE_SUCCESS;
-
} catch (RelpipeCLIException& e) {
fwprintf(stderr, L"Caught CLI exception: %ls\n", e.getMessage().c_str());
fwprintf(stderr, L"Debug: Input stream: eof=%ls, lastRead=%d\n", (cin.eof() ? L"true" : L"false"), cin.gcount());