commit | 04e7032c6e7626741a8f211fe2494577420fe2df | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Wed Jul 17 16:57:13 2002 +0000 |
committer | Guido van Rossum <guido@python.org> | Wed Jul 17 16:57:13 2002 +0000 |
tree | cd6e1e58dabe497d31b04949ce073a0b09bc8488 | |
parent | 0c32279626d166fe0e09c571fcfc9af25508b1cd [diff] [blame] |
SF patch 552161 - Py_AddPendingCall doesn't unlock on fail (Daniel Dunbar) Can't test this, but looks correct to me.
diff --git a/Python/ceval.c b/Python/ceval.c index ab6d88b..50c832a 100644 --- a/Python/ceval.c +++ b/Python/ceval.c
@@ -379,8 +379,10 @@ busy = 1; i = pendinglast; j = (i + 1) % NPENDINGCALLS; - if (j == pendingfirst) + if (j == pendingfirst) { + busy = 0; return -1; /* Queue full */ + } pendingcalls[i].func = func; pendingcalls[i].arg = arg; pendinglast = j;