Changeset 94404 in vbox for trunk/src/libs/openssl-3.0.2/crypto/threads_pthread.c
- Timestamp:
- Mar 31, 2022 9:00:36 AM (3 years ago)
- Location:
- trunk/src/libs/openssl-3.0.2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/openssl-3.0.2
- Property svn:mergeinfo
-
old new 13 13 /vendor/openssl/1.1.1k:145841-145843 14 14 /vendor/openssl/3.0.1:150323-150324 15 /vendor/openssl/current:147554-150322 15 /vendor/openssl/3.0.2:150728-150729 16 /vendor/openssl/current:147554-150727
-
- Property svn:mergeinfo
-
trunk/src/libs/openssl-3.0.2/crypto/threads_pthread.c
r94082 r94404 1 1 /* 2 * Copyright 2016-202 1The OpenSSL Project Authors. All Rights Reserved.2 * Copyright 2016-2022 The OpenSSL Project Authors. All Rights Reserved. 3 3 * 4 4 * Licensed under the Apache License 2.0 (the "License"). You may not use … … 262 262 } 263 263 # ifndef FIPS_MODULE 264 # ifdef OPENSSL_SYS_UNIX265 266 static pthread_once_t fork_once_control = PTHREAD_ONCE_INIT;267 268 static void fork_once_func(void)269 {270 # ifndef OPENSSL_NO_DEPRECATED_3_0271 pthread_atfork(OPENSSL_fork_prepare,272 OPENSSL_fork_parent, OPENSSL_fork_child);273 # endif274 }275 # endif276 277 264 int openssl_init_fork_handlers(void) 278 265 { 279 # ifdef OPENSSL_SYS_UNIX 280 if (pthread_once(&fork_once_control, fork_once_func) == 0) 281 return 1; 282 # endif 283 return 0; 266 return 1; 284 267 } 285 268 # endif /* FIPS_MODULE */
Note:
See TracChangeset
for help on using the changeset viewer.