Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-3465

All binaries must always run cleanup functions at exit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.6, 3.15.3, 3.17.0
    • Component/s: None
    • Labels:
      None
    • Story Points:
      3

      Description

      When DoCleanupAndExit() was introduced, all appearances of the exit() calls where checked, analyzed and replaced. But another way to exit a process is to do return code; from the main() function. And this should actually be the most common code path for exiting our processes. All these places need to have an explicit CallCleanupFunctions() function call.

        Attachments

          Activity

            People

            Assignee:
            vpodzime Vratislav Podzimek
            Reporter:
            vpodzime Vratislav Podzimek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: