mirror of
https://github.com/hyprwm/hyprutils.git
synced 2025-12-20 12:50:10 +01:00
os/process: disallow copying / moving
This commit is contained in:
parent
57ab2a867d
commit
c9cd5f153c
1 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue