From 3a9e7150f79722f780428daa123e963c0995257a Mon Sep 17 00:00:00 2001 From: Mohamed Oulmahdi Date: Wed, 18 Aug 2021 15:47:17 +0200 Subject: [PATCH] Add SIGUSR1 and SIGUSR2 macros for Windows --- fdbserver/SigStack.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fdbserver/SigStack.cpp b/fdbserver/SigStack.cpp index 6ad74ddb63..f00ec5eebc 100644 --- a/fdbserver/SigStack.cpp +++ b/fdbserver/SigStack.cpp @@ -19,6 +19,11 @@ extern "C" void stackSignalHandler(int sig) { } } +#ifdef _WIN32 +#define SIGUSR1 10 +#define SIGUSR2 12 +#endif + void setupStackSignal() { std::signal(SIGUSR1, &stackSignalHandler); }