From c9cd5f153c090005437b5fac504bb4f7172a7cc1 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Mon, 16 Jun 2025 19:42:14 +0200 Subject: [PATCH] os/process: disallow copying / moving --- include/hyprutils/os/Process.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/hyprutils/os/Process.hpp b/include/hyprutils/os/Process.hpp index 6aad8cd..477e952 100644 --- a/include/hyprutils/os/Process.hpp +++ b/include/hyprutils/os/Process.hpp @@ -13,7 +13,14 @@ namespace Hyprutils { CProcess(const std::string& binary_, const std::vector& args_); ~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 void setStdoutFD(int fd);