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,7 +13,14 @@ 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();
void addEnv(const std::string& name, const std::string& value); 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);
// only for async, sync doesn't make sense // only for async, sync doesn't make sense
void setStdoutFD(int fd); void setStdoutFD(int fd);