From 2637bfad42d541372eedf3ea5e289f1c455800a0 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sun, 12 Apr 2026 11:12:40 +0900 Subject: speed: fix SIGALRM handler not registered on Windows --- patches/speed.c.patch | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/patches/speed.c.patch b/patches/speed.c.patch index b649e8e..8e79f5c 100644 --- a/patches/speed.c.patch +++ b/patches/speed.c.patch @@ -1,5 +1,5 @@ ---- apps/openssl/speed.c.orig 2026-03-18 18:00:10 -+++ apps/openssl/speed.c 2026-03-18 18:00:28 +--- apps/openssl/speed.c.orig 2026-04-12 11:09:28 ++++ apps/openssl/speed.c 2026-04-12 11:11:18 @@ -156,7 +156,16 @@ static void print_result(int alg, int run_no, int coun pkey_print_message(const char *str, const char *str2, int bits, int sec); @@ -65,7 +65,7 @@ if (j == 0) { for (i = 0; i < ALGOR_NUM; i++) { -@@ -1607,11 +1624,13 @@ speed_main(int argc, char **argv) +@@ -1607,11 +1624,15 @@ speed_main(int argc, char **argv) #define COND (run && count<0x7fffffff) #define COUNT(d) (count) @@ -75,11 +75,13 @@ sa.sa_flags = SA_RESTART; sa.sa_handler = sig_done; sigaction(SIGALRM, &sa, NULL); ++#else ++ signal(SIGALRM, sig_done); +#endif #ifndef OPENSSL_NO_MD4 if (doit[D_MD4]) { -@@ -2513,7 +2532,9 @@ speed_main(int argc, char **argv) +@@ -2513,7 +2534,9 @@ speed_main(int argc, char **argv) free(ss); } @@ -89,7 +91,7 @@ if (!mr) { fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_VERSION)); fprintf(stdout, "%s\n", SSLeay_version(SSLEAY_BUILT_ON)); -@@ -2695,11 +2716,15 @@ print_result(int alg, int run_no, int count, double ti +@@ -2695,11 +2718,15 @@ print_result(int alg, int run_no, int count, double ti static void print_result(int alg, int run_no, int count, double time_used) { @@ -105,7 +107,7 @@ static char * sstrsep(char **string, const char *delim) { -@@ -2900,5 +2925,6 @@ do_multi(int multi) +@@ -2900,5 +2927,6 @@ do_multi(int multi) free(fds); return 1; } -- cgit v1.2.3-55-g6feb