Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-5617

Improve process handling in SpawnedProcess

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.9.1.0
    • 10.8.3.0, 10.9.1.0
    • Test
    • None

    Description

      SpawnedProcess wraps a java.lang.Process and performs various tasks related to process handling. Using external processes from Java is somewhat tricky, in part because of sub-optimal behavior in the methods provided by Process.

      I plan to implement the following improvements:
      a) Kill the process after a timeout (the clock starts ticking when you create the SpawnedProcess instance).
      b) Don't let interrupts stop SpawnedProcess from waiting for / terminating the process.
      c) Clean up the Process properly.

      Attachments

        1. derby-5617-1a-spawnedprocess_improvements.diff
          21 kB
          Kristian Waagan
        2. derby-5617-2a-join_destroy_ordering.diff
          2 kB
          Kristian Waagan
        3. derby-5617-3a-timer_as_daemon_thread.diff
          0.8 kB
          Kristian Waagan

        Activity

          People

            kristwaa Kristian Waagan
            kristwaa Kristian Waagan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: