os/process: disallow copying / moving

This commit is contained in:
Vaxry 2025-06-16 19:42:14 +02:00
parent 57ab2a867d
commit c9cd5f153c
Signed by: vaxry
GPG key ID: 665806380871D640

View file

@ -13,6 +13,13 @@ namespace Hyprutils {
CProcess(const std::string& binary_, const std::vector<std::string>& args_); CProcess(const std::string& binary_, const std::vector<std::string>& args_);
~CProcess(); ~CProcess();
CProcess(CProcess&) = delete;
CProcess(CProcess&&) = delete;
CProcess(const CProcess&&) = delete;
CProcess(const CProcess&) = delete;
CProcess& operator=(const CProcess&) = delete;
CProcess& operator=(CProcess&&) = delete;
void addEnv(const std::string& name, const std::string& value); void addEnv(const std::string& name, const std::string& value);
// only for async, sync doesn't make sense // only for async, sync doesn't make sense