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

SpawnedProcess.complete may fail to destroy the process when a timeout is specified

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.9.1.0
    • 10.8.2.2, 10.9.1.0
    • Test
    • None

    Description

      The logic in SpawnedProcess has a weakness that may result in the wrapped process not being destroyed if the destroy variable is false and a timeout is specified.
      The problem is that the while condition will shortcut the if condition in the catch clause (where destroy is set to true if the timeout is exceeded).

      Attachments

        1. derby-5444-1c-destroy_on_timeout.diff
          2 kB
          Kristian Waagan
        2. derby-5444-1b-destroy_on_timeout.diff
          4 kB
          Kristian Waagan
        3. derby-5444-1a-destroy_on_timeout.diff
          4 kB
          Kristian Waagan

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: