From cad61f0f6de48c6eab6e811a081f154b03de57b8 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 2 Nov 2018 18:00:56 -0400 Subject: Move prefork, postfork, and thread-exit hooks into subsys So far, crypto is the only module that uses them, but others are likely to do so in the future. --- src/lib/crypt_ops/crypto_init.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib/crypt_ops/crypto_init.c') diff --git a/src/lib/crypt_ops/crypto_init.c b/src/lib/crypt_ops/crypto_init.c index cc7865ef72..a03f5eff7c 100644 --- a/src/lib/crypt_ops/crypto_init.c +++ b/src/lib/crypt_ops/crypto_init.c @@ -227,4 +227,7 @@ const struct subsys_fns_t sys_crypto = { .level = -60, .initialize = init_crypto_sys, .shutdown = shutdown_crypto_sys, + .prefork = crypto_prefork, + .postfork = crypto_postfork, + .thread_cleanup = crypto_thread_cleanup, }; -- cgit v1.2.3-54-g00ecf