From a4ba0f374d48bd31c2248532dc96ec11ba192b77 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 10 Jun 2024 11:10:10 +0200 Subject: executor: don't call close_fds twice --- executor/common.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'executor') diff --git a/executor/common.h b/executor/common.h index b31500802..fdbf4bcb1 100644 --- a/executor/common.h +++ b/executor/common.h @@ -658,7 +658,8 @@ static void loop(void) close(kOutPipeFd); #endif execute_one(); -#if SYZ_HAVE_CLOSE_FDS && !SYZ_THREADED +#if !SYZ_EXECUTOR && SYZ_HAVE_CLOSE_FDS && !SYZ_THREADED + // Executor's execute_one has already called close_fds. close_fds(); #endif doexit(0); -- cgit mrf-deployment