Some platforms don't have pthread_atfork
authorMatt Caswell <matt@openssl.org>
Tue, 8 Mar 2022 17:04:59 +0000 (17:04 +0000)
committerPauli <pauli@openssl.org>
Thu, 10 Mar 2022 02:22:28 +0000 (13:22 +1100)
commit5979596247a73d1aec7310e4da0b6023ffd79623
tree1ed98e35f2f7c189e2044e6c55662f6bc455d5f6
parentb420e249370c4a85c4edd65fb445d20f9c19c44d
Some platforms don't have pthread_atfork

We've had a report of a linker failure on some platforms (this one was
linux ARM) that apparently did not have pthread_atfork. It's strange that
this has not been reported before but the simplest solution is just to
remove this from the library since it isn't really used anyway.

Currently it is called to set up the fork handlers OPENSSL_fork_prepare,
OPENSSL_fork_parent and OPENSSL_fork_child. However all of those functions
are no-ops. This is a remnant from earlier code that got removed. We can
safely remove it now.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17842)
crypto/threads_pthread.c