diff --git a/Userland/Libraries/LibCore/Process.h b/Userland/Libraries/LibCore/Process.h index 1ebe90f4fd0..f2295964aec 100644 --- a/Userland/Libraries/LibCore/Process.h +++ b/Userland/Libraries/LibCore/Process.h @@ -59,7 +59,12 @@ public: { } - Process& operator=(Process&& other) = delete; + Process& operator=(Process&& other) + { + m_pid = exchange(other.m_pid, 0); + m_should_disown = exchange(other.m_should_disown, false); + return *this; + } ~Process() {