mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-17 08:33:54 +00: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) {
|
if (retval != 0) {
|
||||||
_exit(kFailureExitCode);
|
_exit(kFailureExitCode);
|
||||||
}
|
}
|
||||||
return;
|
#else
|
||||||
#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_CHROMEOS)
|
|
||||||
|
|
||||||
// Explicitly re-raise the signal if it will not re-raise itself. Because
|
// Explicitly re-raise the signal if it will not re-raise itself. Because
|
||||||
// signal handlers normally execute with their signal blocked, this raise()
|
// signal handlers normally execute with their signal blocked, this raise()
|
||||||
// cannot immediately deliver the signal. Delivery is deferred until the
|
// cannot immediately deliver the signal. Delivery is deferred until the
|
||||||
@ -310,6 +308,7 @@ void Signals::RestoreHandlerAndReraiseSignalOnReturn(
|
|||||||
if (!WillSignalReraiseAutonomously(siginfo) && raise(sig) != 0) {
|
if (!WillSignalReraiseAutonomously(siginfo) && raise(sig) != 0) {
|
||||||
_exit(kFailureExitCode);
|
_exit(kFailureExitCode);
|
||||||
}
|
}
|
||||||
|
#endif // defined(OS_LINUX) || defined(OS_ANDROID) || defined(OS_CHROMEOS)
|
||||||
}
|
}
|
||||||
|
|
||||||
// static
|
// static
|
||||||
|
Loading…
x
Reference in New Issue
Block a user