of type 'volatile sig_atomic_t'
ok tb
-/* $OpenBSD: speed.c,v 1.34 2023/07/27 07:01:50 tb Exp $ */
+/* $OpenBSD: speed.c,v 1.35 2024/07/01 18:52:22 deraadt Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
#include "./testrsa.h"
#define BUFSIZE (1024*8+64)
-int run = 0;
+volatile sig_atomic_t run = 0;
static int mr = 0;
static int usertime = 1;
static void
sig_done(int sig)
{
+ int save_errno = errno;
+
signal(SIGALRM, sig_done);
+ errno = save_errno;
run = 0;
}