From 1beb81367ce08594953fd11d686589b9613c3a97 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 5 Aug 2018 12:49:08 +0200 Subject: executor: check write return value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc complains: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result] Also fix includes. --- executor/common.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'executor/common.h') diff --git a/executor/common.h b/executor/common.h index 6ba88ea3b..7255b7dc7 100644 --- a/executor/common.h +++ b/executor/common.h @@ -117,7 +117,11 @@ static void install_segv_handler() #endif #if !GOOS_linux -#if SYZ_EXECUTOR || SYZ_REPEAT && SYZ_EXECUTOR_USES_FORK_SERVER +#if (SYZ_EXECUTOR || SYZ_REPEAT) && SYZ_EXECUTOR_USES_FORK_SERVER +#include +#include +#include + static void kill_and_wait(int pid, int* status) { kill(pid, SIGKILL); -- cgit mrf-deployment