http://bugzilla.lysator.liu.se/show_bug.cgi?id=1599
Summary: Unclean shutdown if errors found during startup Product: lyskomd Version: 2.1.2 Platform: All OS/Version: All Status: NEW Severity: minor Priority: P2 Component: server AssignedTo: ceder@lysator.liu.se ReportedBy: ceder@lysator.liu.se QAContact: lyskomd-qa@lists.lysator.liu.se
If an error is found during startup, the process will just call restart_kom. This makes it hard to find memory leaks that occur during problematic startups, since a lot of memory references will be held.
It would be better to let each module have two functions: startup and cleanup. Build a framework that calls each startup in turn. If a startup function indicates that it failed, all the cleanup functions that correspond to successful startup functions would be called, in reverse order.
------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.