From c31f96a8c65c0757078ea77218905c73fc1068d4 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 21 Jun 2018 11:03:53 +0200 Subject: executor: rework fallback coverage We have fallback coverage implmentation for freebsd. 1. It's broken after some recent changes. 2. We need it for fuchsia, windows, akaros, linux too. 3. It's painful to work with C code. Move fallback coverage to ipc package, fix it and provide for all OSes. --- executor/common_linux.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'executor/common_linux.h') diff --git a/executor/common_linux.h b/executor/common_linux.h index abfccdd6e..66247a952 100644 --- a/executor/common_linux.h +++ b/executor/common_linux.h @@ -1961,7 +1961,7 @@ extern unsigned long long procid; #if defined(SYZ_EXECUTOR) void reply_handshake(); -void receive_execute(bool need_prog); +void receive_execute(); void reply_execute(int status); extern uint32* output_data; extern uint32* output_pos; @@ -2030,7 +2030,7 @@ static void loop() // TODO: consider moving the read into the child. // Potentially it can speed up things a bit -- when the read finishes // we already have a forked worker process. - receive_execute(false); + receive_execute(); #endif int pid = fork(); if (pid < 0) -- cgit mrf-deployment