Commons Exec
  1. Commons Exec
  2. EXEC-59

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

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: 1.2
    • Labels:
      None
    • Environment:

      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().

      1. spawner.sh
        0.1 kB
        David Tombs

        Issue Links

          Activity

            People

            • Assignee:
              Siegfried Goeschl
              Reporter:
              David Tombs
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development