Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4454736

rmid should wait for children to terminate after destroying them

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 5.0
    • 1.3.0, 5.0
    • core-libs
    • b25
    • generic, x86
    • generic, linux
    • Verified

      When rmid calls Process.destroy to terminate an child activation group, it does not call Process.waitFor to wait until the child is really terminated. On platforms that support graceful process shutdown, including execution of Runtime shutdown hooks, this means that rmid might terminate before its children have, or that rmid might attempt to start a new group instance before the previous instance has really terminated. In general, this seems undesirable; it seems better for rmid to explicitly waitFor the process. (Except in the case of destroying children from rmid's own shutdown hook [added in merlin], which should finish quickly.)

            awollratsunw Ann Wollrath (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: