diff --git a/kernel/include/kernel/Terminal/TTY.h b/kernel/include/kernel/Terminal/TTY.h index 0cb81befcd..f6761a8e21 100644 --- a/kernel/include/kernel/Terminal/TTY.h +++ b/kernel/include/kernel/Terminal/TTY.h @@ -40,7 +40,7 @@ namespace Kernel void putchar(uint8_t ch); virtual void putchar_impl(uint8_t ch) = 0; - bool has_data() const; + virtual bool has_data_impl() const override; protected: TTY(mode_t mode, uid_t uid, gid_t gid) diff --git a/kernel/kernel/Terminal/TTY.cpp b/kernel/kernel/Terminal/TTY.cpp index e2c50884f0..cdd9f3f6e0 100644 --- a/kernel/kernel/Terminal/TTY.cpp +++ b/kernel/kernel/Terminal/TTY.cpp @@ -328,7 +328,7 @@ namespace Kernel return count; } - bool TTY::has_data() const + bool TTY::has_data_impl() const { LockGuard _(m_lock); return m_output.flush;