global shutdown hooks to free global resources once

Registered by Jan Kneschke on 2010-02-19

If plugins use 3rd party libs like openssl, they may have to call cleanup functions that should only be called once and with a mutex.

The chassis should get a hash of { string, cleanup_func } which are called on shutdown. In the case of openssl we would register code that would call:

        curl_global_cleanup();

        SSL_free_comp_methods();
        ERR_free_strings();
        ENGINE_cleanup();
        CRYPTO_cleanup_all_ex_data();

Blueprint information

Status:
Complete
Approver:
Jan Kneschke
Priority:
Medium
Drafter:
Jan Kneschke
Direction:
Needs approval
Assignee:
Jan Kneschke
Definition:
Approved
Series goal:
Accepted for 0.8
Implementation:
Implemented
Milestone target:
None
Started by
Jan Kneschke on 2010-02-19
Completed by
Jan Kneschke on 2010-02-19

Related branches

Sprints

Whiteboard

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.