Kernel: Remove bogus FIXME in TTY::write()

Failure to send SIGTTOU to the current process is not something that
should cause write() to fail with -ESRCH.
This commit is contained in:
Andreas Kling 2020-09-06 18:12:07 +02:00
parent 8e489b451a
commit c14de7da99
Notes: sideshowbarker 2024-07-19 02:53:12 +09:00

View File

@ -92,7 +92,6 @@ KResultOr<size_t> TTY::read(FileDescription&, size_t, u8* buffer, size_t size)
KResultOr<size_t> TTY::write(FileDescription&, size_t, const u8* buffer, size_t size)
{
if (Process::current()->pgid() != pgid()) {
// FIXME: Should we propigate this error path somehow?
(void)Process::current()->send_signal(SIGTTOU, nullptr);
return KResult(-EINTR);
}