Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-6141

Client hangs sporadic, if started without an tty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Cannot Reproduce
    • 4.2.2
    • None
    • karaf
    • None
    • SuSe Linux

    Description

      Hello,

      since Version 4.2.2 the bin/client process hangs sporadic, if it has been started as a process, which is not attached to a tty (for example with cronjob). Before Version 4.2.2 the client works fine.

      Below is a simple example to reproduce this issue:

       

      while true; do
        setsid sh -c 'echo $$ ; ${KARAF_DIR}/bin/client -a ${SSH_PORT} "exit"' < /dev/null
        sleep 2
      done
      

      After some iterations, you should find some hanging "org.apache.karaf.client.Main -a 8101 exit" processes with ps -ef.

       

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              mgerstaedt M Gerstädt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: