aboutsummaryrefslogtreecommitdiffstats
path: root/searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp')
-rw-r--r--searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp b/searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp
index ddb41ae67a6..133912548b1 100644
--- a/searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp
+++ b/searchcore/src/apps/vespa-dump-feed/vespa-dump-feed.cpp
@@ -9,11 +9,12 @@
#include <vespa/messagebus/network/rpcnetworkparams.h>
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/util/signalhandler.h>
-#include <vespa/vespalib/util/child_process.h>
+#include <vespa/vespalib/process/process.h>
#include <vespa/vespalib/util/stringfmt.h>
#include <vespa/vespalib/objects/nbostream.h>
#include <vespa/config/common/exceptions.h>
#include <vespa/config/helper/configgetter.hpp>
+#include <vespa/fastos/app.h>
#include <iostream>
@@ -114,7 +115,6 @@ FeedHandler::~FeedHandler()
class App : public FastOS_Application
{
public:
- virtual bool useProcessStarter() const override { return true; }
virtual int Main() override;
};
@@ -200,8 +200,8 @@ App::Main()
std::string feedCmd(vespalib::make_string("vespa-feeder --route \"%s\" %s",
route.c_str(), feedFile.c_str()));
fprintf(stderr, "running feed command: %s\n", feedCmd.c_str());
- std::string feederOutput;
- bool feedingOk = vespalib::ChildProcess::run(feedCmd.c_str(), feederOutput);
+ vespalib::string feederOutput;
+ bool feedingOk = vespalib::Process::run(feedCmd, feederOutput);
if (!feedingOk) {
fprintf(stderr, "error: feed command failed\n");
fprintf(stderr, "feed command output:\n-----\n%s\n-----\n", feederOutput.c_str());