about summary refs log tree commit diff
path: root/src/libmain/shared.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-22T13·49+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-22T14·51+0100
commit840056af04561e7fed31c459948be7c0e038864a (patch)
tree6175fd163cc973c50a50046b000837a3016ccc0b /src/libmain/shared.hh
parentd361901bfe50f43ed1b94e89c95718b072f07821 (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.hh4
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();
+
+
 }