siege: patch out last use of CRYPTO_tread_id() in a debug message

This commit is contained in:
tb
2025-05-18 00:26:48 +00:00
parent 9e458b27c1
commit 049f01121c
2 changed files with 17 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
COMMENT = multi-threaded HTTP benchmark and regression tester
DISTNAME = siege-4.1.7
REVISION = 0
CATEGORIES = benchmarks www
@@ -20,6 +21,8 @@ LOCALSTATEDIR = ${BASELOCALSTATEDIR}/log/siege
CONFIGURE_STYLE = gnu
FIX_CRLF_FILES = src/ssl.c
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/siege
${INSTALL_DATA} ${WRKSRC}/doc/urls.txt ${WRKSRC}/doc/siegerc \
+14
View File
@@ -0,0 +1,14 @@
Remove last use of CRYPTO_thread_id()
Index: src/ssl.c
--- src/ssl.c.orig
+++ src/ssl.c
@@ -237,7 +237,7 @@ SSL_pthreads_locking_callback(int mode, int type, char
{
if( my.debug == 4 ){
fprintf(
- stderr,"thread=%4d mode=%s lock=%s %s:%d\n", (int)CRYPTO_thread_id(),
+ stderr,"thread=%4d mode=%s lock=%s %s:%d\n", (int)pthread_self(),
(mode&CRYPTO_LOCK)?"l":"u", (type&CRYPTO_READ)?"r":"w",file,line
);
}