Libfuzzer fix for Ctrl + c not working with -fork and -ignore_crashes=1
authorMaxim Schessler <maxim.schessler@gmail.com>
Mon, 15 Aug 2022 18:44:06 +0000 (11:44 -0700)
committerVitaly Buka <vitalybuka@google.com>
Tue, 16 Aug 2022 23:45:39 +0000 (16:45 -0700)
commitaa0e9046c16bf27a8affbd903e2e3cad924a5217
treeb7f5e17c3c705dc7f718e20dff8bff42b5c0f3fe
parentd8cdd78b6c04fb91ba5478b619d5076bc6868ebc
Libfuzzer fix for Ctrl + c not working with -fork and -ignore_crashes=1

In some cases running Libfuzzer in fork mode with -ignore_crashes=1 counts ctrl+c as crash and restarts.

Thread: https://github.com/google/oss-fuzz/issues/4547

Credit: Marcel Boehme <marcel.boehme@acm.org>

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D130990
compiler-rt/lib/fuzzer/FuzzerInternal.h
compiler-rt/lib/fuzzer/FuzzerLoop.cpp
compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp