diff options
author | jcid <devnull@localhost> | 2008-05-17 03:00:04 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-05-17 03:00:04 +0200 |
commit | 907df0d21b68efd17f176d883a5d857d571237c6 (patch) | |
tree | c975f8b5721cd0902c9dab07177b2ce7e664826b /src/IO/dpi.c | |
parent | 42a48c329bdaa79d3a92951912f1174b7bc5035c (diff) |
- CCC: added reentrancy control to the OpEnd and OpAbort operations.
- CCC: enhanced the debug function and implemented OpAbort for dpi.
Diffstat (limited to 'src/IO/dpi.c')
-rw-r--r-- | src/IO/dpi.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/IO/dpi.c b/src/IO/dpi.c index 52ee7d87..33e5f730 100644 --- a/src/IO/dpi.c +++ b/src/IO/dpi.c @@ -606,7 +606,7 @@ void a_Dpi_ccc(int Op, int Branch, int Dir, ChainLink *Info, dpi_conn_t *conn; int SockFD = -1, st; - a_Chain_debug_msg("a_Dpi_ccc", Op, Branch, Dir); + dReturn_if_fail( a_Chain_check("a_Dpi_ccc", Op, Branch, Dir, Info) ); if (Branch == 1) { if (Dir == BCK) { @@ -641,6 +641,11 @@ void a_Dpi_ccc(int Op, int Branch, int Dir, ChainLink *Info, dFree(Info->LocalKey); dFree(Info); break; + case OpAbort: + a_Chain_bcb(OpAbort, Info, NULL, NULL); + dFree(Info->LocalKey); + dFree(Info); + break; default: MSG_WARN("Unused CCC\n"); break; |