Commit d449fce2 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot 8

Don't try to ignore the SIGPIPE signal if it isn't defined

Summary: Which is the case when compiling under MSVC.

Reviewed By: pixelb

Differential Revision: D3671357

fbshipit-source-id: b7e51479cae44933c3f1caa21d45775a32f294a3
parent 41db9753
...@@ -1890,6 +1890,7 @@ TEST(AsyncSSLSocketTest, ConnectTFOFallbackTimeout) { ...@@ -1890,6 +1890,7 @@ TEST(AsyncSSLSocketTest, ConnectTFOFallbackTimeout) {
} // namespace } // namespace
#ifdef SIGPIPE
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
// init_unit_test_suite // init_unit_test_suite
/////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////
...@@ -1901,3 +1902,4 @@ struct Initializer { ...@@ -1901,3 +1902,4 @@ struct Initializer {
}; };
Initializer initializer; Initializer initializer;
} // anonymous } // anonymous
#endif
...@@ -131,7 +131,9 @@ TEST(AsyncSSLSocketTest2, AttachDetachSSLContext) { ...@@ -131,7 +131,9 @@ TEST(AsyncSSLSocketTest2, AttachDetachSSLContext) {
} // folly } // folly
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
#ifdef SIGPIPE
signal(SIGPIPE, SIG_IGN); signal(SIGPIPE, SIG_IGN);
#endif
folly::SSLContext::setSSLLockTypes({ folly::SSLContext::setSSLLockTypes({
{CRYPTO_LOCK_EVP_PKEY, folly::SSLContext::LOCK_NONE}, {CRYPTO_LOCK_EVP_PKEY, folly::SSLContext::LOCK_NONE},
{CRYPTO_LOCK_SSL_SESSION, folly::SSLContext::LOCK_SPINLOCK}, {CRYPTO_LOCK_SSL_SESSION, folly::SSLContext::LOCK_SPINLOCK},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment