| 500 | } |
| 501 | |
| 502 | int SignalFromStatus(const Status& status) { |
| 503 | const auto detail = status.detail(); |
| 504 | if (detail != nullptr && detail->type_id() == kSignalDetailTypeId) { |
| 505 | return checked_cast<const SignalDetail&>(*detail).signum(); |
| 506 | } |
| 507 | return 0; |
| 508 | } |
| 509 | |
| 510 | namespace { |
| 511 |