Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions fuzztest/internal/centipede_adaptor.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,15 +339,15 @@ void InstallCentipedeTerminationHandler() {
GetStderrFdDup() != -1 ? GetStderrFdDup() : STDERR_FILENO;
if (signum == SIGTERM) {
constexpr char msg[] = "\n[!] SIGTERM received - stopping fuzzing.\n";
write(fd, msg, sizeof(msg) - 1);
(void)write(fd, msg, sizeof(msg) - 1); // Ignore result of write.
return;
} else if (signum == SIGHUP) {
constexpr char msg[] = "\n[!] SIGHUP received - stopping fuzzing.\n";
write(fd, msg, sizeof(msg) - 1);
(void)write(fd, msg, sizeof(msg) - 1); // Ignore result of write.
return;
}
constexpr char msg[] = "\n[!] Unexpected signal received - aborting.\n";
write(fd, msg, sizeof(msg) - 1);
(void)write(fd, msg, sizeof(msg) - 1); // Ignore result of write.
std::abort();
};

Expand Down
Loading