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

loggings apis: FileHandler should not use deleteOnExit for locks

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.4.0
    • core-libs
    • None
    • beta
    • x86
    • windows_nt
    • Verified


      Currently, when the FileHandler creates a lock file it calls
      File.deleteOnExit to delete the lock file when the VM exits.

      However, the application may also close the FileHandler voluntarily.
      In this case the same log file and lock file may be opened by
      another application. So when the first application exits, it
      may close the lock file that is now being used by the second
      application.

      graham.hamilton@Eng 2000-09-29

            ghamiltosunw Graham Hamilton (Inactive)
            ghamiltosunw Graham Hamilton (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: