#5076: cat /dev/urandom hangs the terminal after a while -------------------------+-------------------------------------------------- Reporter: jackburton | Owner: bonefish Type: bug | Status: new Priority: normal | Milestone: R1 Component: Drivers/TTY | Version: R1/Development Keywords: gcc4 hybrid | Platform: All Blockedby: | Patch: 0 Blocking: | -------------------------+-------------------------------------------------- Comment(by jackburton): Replying to [comment:10 bonefish]: > Replying to [comment:8 jackburton]: > > Looking at the linux tty layer I found that they expose a reduced available buffer to the tty drivers, so that there is always enough room to handle cases like this. > > Can you explain how that is supposed to work? Some comments ago you wrote: "This would also solve the second issue, that in echo mode writes from the Terminal are echoed back to the TTY master, whose buffer could already be full. ". If the TTY master buffer reserved some space to handle echo and control characters (by exposing a smaller buffer to drivers), its buffer will never fill up completely, so it won't deadlock. -- Ticket URL: <http://dev.haiku-os.org/ticket/5076#comment:11> Haiku <http://dev.haiku-os.org> Haiku - the operating system.