[kernel] Don't delete system object on no handles

The system object should never be deleted, so override on_no_handles()
to do nothing.
This commit is contained in:
Justin C. Miller
2022-02-28 18:50:59 -08:00
parent 9120318594
commit f87a4fcd4e

View File

@@ -18,6 +18,10 @@ public:
inline static system & get() { return s_instance; } inline static system & get() { return s_instance; }
protected:
/// Don't delete the system object on no handles.
virtual void on_no_handles() override {}
private: private:
static system s_instance; static system s_instance;
system() : kobject(type::system) {} system() : kobject(type::system) {}