Uploaded image for project: 'Commons Exec'
  1. Commons Exec
  2. EXEC-59

execute() does not return if executed process spawned other processes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1
    • 1.2
    • None
    • Linux x86_64

    Description

      When executing a process that spawns other processes, DefaultExecutor.execute() does not return until these secondary processes die.

      This is a problem for me because I am executing a long-running service that uses long-running helper processes. I want to know if the service process crashes (which leaves the helper processes running), but I never get any notice because execute() does not return. It blocks while calling PumpStreamHandler.stop().

      Attachments

        1. spawner.sh
          0.1 kB
          David Tombs

        Issue Links

          Activity

            People

              sgoeschl Siegfried Goeschl
              dgtombs David Tombs
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: