X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=test%2Flib%2FForkAndExec.hpp;h=66d93f8ee9ccefd77a656ed150d14e3bccf0311c;hb=fd66e60622e8e139753f62454cfdd5be662e39a0;hp=ad7b415150c38ec04b911c749263ec21cc7be194;hpb=7e2b466107a65e22f1cc258ca8643922dbb60352;p=m6w6%2Flibmemcached diff --git a/test/lib/ForkAndExec.hpp b/test/lib/ForkAndExec.hpp index ad7b4151..66d93f8e 100644 --- a/test/lib/ForkAndExec.hpp +++ b/test/lib/ForkAndExec.hpp @@ -1,3 +1,18 @@ +/* + +--------------------------------------------------------------------+ + | libmemcached - C/C++ Client Library for memcached | + +--------------------------------------------------------------------+ + | Redistribution and use in source and binary forms, with or without | + | modification, are permitted under the terms of the BSD license. | + | You should have received a copy of the license in a bundled file | + | named LICENSE; in case you did not receive a copy you can review | + | the terms online at: https://opensource.org/licenses/BSD-3-Clause | + +--------------------------------------------------------------------+ + | Copyright (c) 2006-2014 Brian Aker https://datadifferential.com/ | + | Copyright (c) 2020 Michael Wallner | + +--------------------------------------------------------------------+ +*/ + #pragma once #include "common.hpp" @@ -10,13 +25,12 @@ public: ~ForkAndExec(); ForkAndExec(const ForkAndExec &) = delete; - ForkAndExec &operator = (const ForkAndExec &) = delete; + ForkAndExec &operator=(const ForkAndExec &) = delete; ForkAndExec(ForkAndExec &&) = default; - ForkAndExec &operator = (ForkAndExec &&) = default; + ForkAndExec &operator=(ForkAndExec &&) = default; - [[nodiscard]] - int createPipe(); - pid_t operator () (); + [[nodiscard]] int createPipe(); + pid_t operator()(); private: int ready[2], pipes[2];