From d508db41c3fcaf43532c5e189cb7beb5d855c292 Mon Sep 17 00:00:00 2001 From: Alexander Shaduri Date: Fri, 4 Feb 2022 11:39:41 +0400 Subject: [PATCH] Windows compilation fixes. Signed-off-by: Alexander Shaduri --- src/hz/process_signal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hz/process_signal.h b/src/hz/process_signal.h index 3c730fd..eef2cb5 100644 --- a/src/hz/process_signal.h +++ b/src/hz/process_signal.h @@ -195,7 +195,7 @@ namespace internal { inline int process_signal_send(process_id_t process_handle, signal_t sig) { - if (process_handle <= 0) { + if (process_handle == 0) { errno = ESRCH; // The pid or process group does not exist. return -1; }