Procházet zdrojové kódy

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.
Andreas Kling před 4 roky
rodič
revize
c14de7da99
1 změnil soubory, kde provedl 0 přidání a 1 odebrání
  1. 0 1
      Kernel/TTY/TTY.cpp

+ 0 - 1
Kernel/TTY/TTY.cpp

@@ -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);
     }