Skip to content

Commit

Permalink
bugfix: lost swift code signal crash
Browse files Browse the repository at this point in the history
  • Loading branch information
zixun committed Mar 15, 2017
1 parent d6c5e93 commit 8958345
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CrashEye/Classes/CrashEye.swift
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ public class CrashEye: NSObject {
signal(SIGFPE, CrashEye.RecieveSignal)
signal(SIGBUS, CrashEye.RecieveSignal)
signal(SIGPIPE, CrashEye.RecieveSignal)
//http://stackoverflow.com/questions/36325140/how-to-catch-a-swift-crash-and-do-some-logging
signal(SIGTRAP, CrashEye.RecieveSignal)
}

private static let RecieveException: @convention(c) (NSException) -> Swift.Void = {
Expand Down

0 comments on commit 8958345

Please sign in to comment.