Uploaded image for project: 'Aesh'
  1. Aesh
  2. AESH-106

read() hangs when stdin is a redirection from /dev/null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 0.40, 0.33.8
    • None
    • main
    • None
    • linux, fedora 18, RHEL6

      Hello, I'm seeing a regression in aesh behavior, actually jboss-cli. In the past if one runs jbosscli with ` < /dev/null` and password is required, then the command just failed and quit. I am guessing the read() call generated some exception.
      Now the read call freezes forever instead. Ctrl+c fails to kill the process and `kill -9` is required.

      This is really ugly beacause and error in an automation script or environment can cause problems to unsuspecting users. It also is a problem for some of our jboss-cli tests that check behavior of the cli interface.

      I see the problem in current wildfly and EAP 6.1.1

      See related bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=990227

              spederse@redhat.com Stale Pedersen
              akostadi1@redhat.com Aleksandar Kostadinov
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: