title: Why does reading a line of input from /dev/zero make my computer unresponsive?
body: <p>When building this code:</p>
  <pre class="lang-rust prettyprint-override"><code>use std::io;
  
  fn main() {
      let mut guess = String::new();
      let res = io::stdin()
          .read_line(&amp;mut guess)
          .expect(&quot;Failed to read line&quot;);
  }
  </code></pre>
  <p>and then executing:</p>
  <pre class="lang-none prettyprint-override"><code>cargo run &lt; /dev/zero
  </code></pre>
  <p>My computer (under Ubuntu 20) becomes unresponsive.</p>
  <p>I have read <a href="https://docs.rs/rl-sys/0.5.2/rl_sys/readline/index.html" rel="nofollow noreferrer">the manual page of the <code>readline</code> function</a> and this behavior doesn't seem normal.</p>
  <p>What am I missing?</p>