diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-22T13·49+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2016-02-22T14·51+0100 |
commit | 840056af04561e7fed31c459948be7c0e038864a (patch) | |
tree | 6175fd163cc973c50a50046b000837a3016ccc0b /src/libmain/shared.hh | |
parent | d361901bfe50f43ed1b94e89c95718b072f07821 (diff) |
Make OpenSSL usage thread-safe
OpenSSL can randomly segfault unless we register a callback function to do locking. https://www.openssl.org/docs/manmaster/crypto/threads.html
Diffstat (limited to 'src/libmain/shared.hh')
-rw-r--r-- | src/libmain/shared.hh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libmain/shared.hh b/src/libmain/shared.hh index 3f3f6f7232e0..0682267fa376 100644 --- a/src/libmain/shared.hh +++ b/src/libmain/shared.hh @@ -101,4 +101,8 @@ struct PrintFreed }; +/* Install a SIGSEGV handler to detect stack overflows. */ +void detectStackOverflow(); + + } |