title: docker process hangs on write system call to stdout
body: <p>One application process inside a docker was not responding. When we strace'd the pid, process was stuck in the following line.</p>
  
  <p><strong>Strace Ouput:</strong></p>
  
  <pre><code>root@hostname-blah ~ # strace -p 29353
  strace: Process 29353 attached
  write(1, "\n", 1
  </code></pre>
  
  <p>file descriptor 1 was pointing to /dev/pts/0</p>
  
  <pre><code>echo "abc" &gt; /dev/pts/0
  </code></pre>
  
  <p>also got stuck in this affected docker container (but it was working in other containers).</p>