mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
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:
parent
08978c7b75
commit
ab9a87fb54
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user