From f381bfa67a80dc41c53d55a2d7de22ea7f874cd7 Mon Sep 17 00:00:00 2001 From: WebFreak001 Date: Fri, 4 Nov 2022 20:26:11 +0100 Subject: [PATCH] don't print signal handlers on every run fixes release build test --- source/crash_handler.d | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/crash_handler.d b/source/crash_handler.d index 8559052d..10173097 100644 --- a/source/crash_handler.d +++ b/source/crash_handler.d @@ -37,7 +37,9 @@ static if (BacktraceHandler) ]) signal(sig, &backtrace_handler); - fprintf(stderr, "Registered backtrace signal handlers\n"); + // this is print on every invocation of serve-d, so we only print this in unittests and assume it works elsewhere + version (unittest) + fprintf(stderr, "Registered backtrace signal handlers\n"); } shared static this()