]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #11393: fix usage of locks in faulthandler
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 1 Apr 2011 01:16:51 +0000 (03:16 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 1 Apr 2011 01:16:51 +0000 (03:16 +0200)
commitf309134effa997b19e202c9b580d3332952f65a4
tree2446a4709e8d8c0a90ca8ef32dcb027c5414d104
parenta4d4f1b4cb9f6038f865f86e1aa93169fc54dbaf
Issue #11393: fix usage of locks in faulthandler

 * faulthandler_cancel_dump_tracebacks_later() is responsible to set running
   to zero (so we don't need the volatile keyword anymore)
 * release locks if PyThread_start_new_thread() fails

assert(thread.running == 0) was wrong in a corner case
Modules/faulthandler.c