aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2024-06-10 11:10:10 +0200
committerDmitry Vyukov <dvyukov@google.com>2024-06-10 13:40:53 +0000
commita4ba0f374d48bd31c2248532dc96ec11ba192b77 (patch)
treee0e14634d1718b8848705a05eb3c85abb052b238 /executor/common.h
parent82c05ab8ae0b7da9a799b45753b4b14f3369d790 (diff)
executor: don't call close_fds twice
Diffstat (limited to 'executor/common.h')
-rw-r--r--executor/common.h3
1 files changed, 2 insertions, 1 deletions
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);