From cfa888eb571d92d4de02b406f0dad15e4fa26d19 Mon Sep 17 00:00:00 2001 From: Ron Yorston Date: Sat, 25 Jul 2020 12:48:13 +0100 Subject: win32: code shrink kill(2) - Drop exit_code argument from kill_SIGTERM_by_handle() - Pass signal number rather than exit code to other functions - Merge kill_SIGKILL() and kill_SIGTEST() Saves 112 bytes. --- include/mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/mingw.h b/include/mingw.h index c75b06330..a67b161c7 100644 --- a/include/mingw.h +++ b/include/mingw.h @@ -502,7 +502,7 @@ int mingw_execve(const char *cmd, char *const *argv, char *const *envp); #define has_dos_drive_prefix(path) (isalpha(*(path)) && (path)[1] == ':') #define is_absolute_path(path) ((path)[0] == '/' || (path)[0] == '\\' || has_dos_drive_prefix(path)) -int kill_SIGTERM_by_handle(HANDLE process, int exit_code); +int kill_SIGTERM_by_handle(HANDLE process); #define find_mount_point(n, s) find_mount_point(n) -- cgit v1.2.3-55-g6feb