Uploaded image for project: 'WINDUP - Red Hat Application Migration Toolkit'
  1. WINDUP - Red Hat Application Migration Toolkit
  2. WINDUP-1260

Add 'trap' to bin/windup script that kills the actual Windup process spawned by the bin/windup script

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.CR1
    • None
    • None
    • None

      The bin/windup script needs to kill the Windup process that gets spawned by the bin/windup 'eval ...' statement. Both the windup.sh and windup.bat need to support this functionality.

      The use case:

      When Windup is ran in server mode using java, for example:

      Process process = Runtime.getRuntime().exec("bin/windup", ... "--serverMode");

      If you destroy the process, the process spawned by the bin/windup does not also get destroyed.

      process.destroy(); // This does not kill the actual Windup process.

      Examples of something similar to what we might need using 'trap' statement:

      http://stackoverflow.com/questions/33851576/how-to-kill-all-child-processes-spawned-by-a-process-started-from-a-script-on-ki

            josteele John Steele
            josteele John Steele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: