Uploaded image for project: 'Commons Daemon'
  1. Commons Daemon
  2. DAEMON-136

Jsvc does not exit when all non-daemon threads are died

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Incomplete
    • 1.0.2
    • None
    • Jsvc
    • None
    • Ubuntu 9.10, Sun Java 1.6.0_16

    Description

      A jsvc dameon keeps running even if all non-dameon Java threads are exited. It can be reproduced by creating a start class with the usual four, but empty functions. The symtom does not change if init() takes a few seconds of time. I have attached three stack traces, using different jstack options, I don't see anything special, however.

      The workaround is to explicitly call System.exit() at places where the system can finish its work.

      Attachments

        1. stack-mixed-long
          8 kB
          Hontvári József Levente
        2. stack-long
          2 kB
          Hontvári József Levente
        3. stack
          2 kB
          Hontvári József Levente

        Activity

          People

            Unassigned Unassigned
            hontvari Hontvári József Levente
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: