]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Cleanup the UnixRemote constructor
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 15 Feb 2023 15:27:09 +0000 (16:27 +0100)
committerFred Morcos <fred.morcos@open-xchange.com>
Mon, 20 Feb 2023 10:22:48 +0000 (11:22 +0100)
modules/pipebackend/coprocess.cc
modules/pipebackend/coprocess.hh
modules/pipebackend/pipebackend.cc

index 91a63fcf58b42cafd399c15a5e26e39362c45a34..c33851eb481133726621faa1a5fc4d6521b1df15 100644 (file)
@@ -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)
index 033d8129dfb1d7c1f400efaad4614107e8926498..5fbf331935b94cb165022af0112d4b151e886342 100644 (file)
@@ -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;
index 8e51a3fd4786855cfcc27e3d8b0229b45db4cdfb..d2f0c5db94f78ee6cea7560fb1c969472d85df6c 100644 (file)
@@ -66,7 +66,7 @@ void CoWrapper::launch()
     throw ArgException("pipe-command is not specified");
 
   if (isUnixSocket(d_command)) {
-    d_cp = std::make_unique<UnixRemote>(d_command, d_timeout);
+    d_cp = std::make_unique<UnixRemote>(d_command);
   }
   else {
     auto coprocess = std::make_unique<CoProcess>(d_command, d_timeout);