From: Fred Morcos Date: Wed, 15 Feb 2023 15:27:09 +0000 (+0100) Subject: Cleanup the UnixRemote constructor X-Git-Tag: dnsdist-1.8.0-rc1~3^2~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fad4b509be6aeb588db2b8d82356b47ee78daef5;p=thirdparty%2Fpdns.git Cleanup the UnixRemote constructor --- diff --git a/modules/pipebackend/coprocess.cc b/modules/pipebackend/coprocess.cc index 91a63fcf58..c33851eb48 100644 --- a/modules/pipebackend/coprocess.cc +++ b/modules/pipebackend/coprocess.cc @@ -218,7 +218,7 @@ void CoProcess::sendReceive(const string& snd, string& rcv) receive(rcv); } -UnixRemote::UnixRemote(const string& path, int /* timeout */) +UnixRemote::UnixRemote(const string& path) { d_fd = socket(AF_UNIX, SOCK_STREAM, 0); if (d_fd < 0) diff --git a/modules/pipebackend/coprocess.hh b/modules/pipebackend/coprocess.hh index 033d8129df..5fbf331935 100644 --- a/modules/pipebackend/coprocess.hh +++ b/modules/pipebackend/coprocess.hh @@ -60,7 +60,7 @@ private: class UnixRemote : public CoRemote { public: - UnixRemote(const string& path, int timeout = 0); + UnixRemote(const string& path); void sendReceive(const string& send, string& receive) override; void receive(string& rcv) override; void send(const string& send) override; diff --git a/modules/pipebackend/pipebackend.cc b/modules/pipebackend/pipebackend.cc index 8e51a3fd47..d2f0c5db94 100644 --- a/modules/pipebackend/pipebackend.cc +++ b/modules/pipebackend/pipebackend.cc @@ -66,7 +66,7 @@ void CoWrapper::launch() throw ArgException("pipe-command is not specified"); if (isUnixSocket(d_command)) { - d_cp = std::make_unique(d_command, d_timeout); + d_cp = std::make_unique(d_command); } else { auto coprocess = std::make_unique(d_command, d_timeout);