]> granicus.if.org Git - python/commit
Improve faulthandler.enable(all_threads=True)
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 8 Apr 2011 22:47:23 +0000 (00:47 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 8 Apr 2011 22:47:23 +0000 (00:47 +0200)
commita4de6d885f08d4aabdc606d7c38341323e5ef1ab
treea7f46539389a868d29e25818033fe83db7dcf38a
parentc790a5346d8918a698ca2bd01491255ae21faa61
Improve faulthandler.enable(all_threads=True)

faulthandler.enable(all_threads=True) dumps the tracebacks even if it is not
possible to get the state of the current thread

Create also the get_thread_state() subfunction to factorize the code.
Modules/faulthandler.c