Skip to content

Instantly share code, notes, and snippets.

@kisielk
Created June 27, 2011 17:24
Show Gist options
  • Select an option

  • Save kisielk/1049319 to your computer and use it in GitHub Desktop.

Select an option

Save kisielk/1049319 to your computer and use it in GitHub Desktop.
Trying to catch SIGABRT
import signal, os
def handler(signum, frame):
print "Signal!"
raise Exception()
signal.signal(signal.SIGABRT, handler)
os.abort()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment