Fix dead-code warning in util/posix/signals.cc

This unblocks a roll of crashpad into chromium.

Bug: None
Change-Id: I54fc53e0b53b8a7c7ff8e28c4657b46587bfad8d
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/3287226
Commit-Queue: Peter Boström <pbos@chromium.org>
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Peter Boström 2021-11-16 15:20:14 -08:00 committed by Crashpad LUCI CQ
parent 08978c7b75
commit ab9a87fb54

View File

@ -298,9 +298,7 @@ void Signals::RestoreHandlerAndReraiseSignalOnReturn(
if (retval != 0) {
_exit(kFailureExitCode);
}
return;
#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_CHROMEOS)
#else
// Explicitly re-raise the signal if it will not re-raise itself. Because
// signal handlers normally execute with their signal blocked, this raise()
// cannot immediately deliver the signal. Delivery is deferred until the
@ -310,6 +308,7 @@ void Signals::RestoreHandlerAndReraiseSignalOnReturn(
if (!WillSignalReraiseAutonomously(siginfo) && raise(sig) != 0) {
_exit(kFailureExitCode);
}
#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_CHROMEOS)
}
// static