From df34f5e92b1d10f0bb858d2ea6e8c249e87ac593 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Tue, 21 Sep 2021 12:52:24 +0100 Subject: ash: improve signal handling Allow waitpid() to detect SIGTERM/SIGKILL by checking the (Windows) status returned by GetExitCodeProcess() and updating the Unix status to suit. This allows ash to detect when a process has been 'signalled'. Provide our own implementation of strsignal(3) which returns expanded text for SIGTERM/SIGKILL. Costs 192 bytes. --- include/platform.h | 1 - 1 file changed, 1 deletion(-) (limited to 'include/platform.h') diff --git a/include/platform.h b/include/platform.h index 37e48dcc5..7bb39fd93 100644 --- a/include/platform.h +++ b/include/platform.h @@ -473,7 +473,6 @@ typedef unsigned smalluint; # undef HAVE_STRCASESTR # undef HAVE_STRCHRNUL # undef HAVE_STRSEP -# undef HAVE_STRSIGNAL # undef HAVE_STRVERSCMP #if !defined(__MINGW64_VERSION_MAJOR) # undef HAVE_VASPRINTF -- cgit v1.2.3-55-g6feb