From: <da...@us...> - 2003-07-16 06:32:02
|
Update of /cvsroot/cerber/cerb-ng/kcerb In directory sc8-pr-cvs1:/tmp/cvs-serv30095 Modified Files: cerb_action.c Log Message: Now we could monitor every increase and decrease of prison's reference count. Index: cerb_action.c =================================================================== RCS file: /cvsroot/cerber/cerb-ng/kcerb/cerb_action.c,v retrieving revision 1.125 retrieving revision 1.126 diff -u -d -r1.125 -r1.126 --- cerb_action.c 13 Jul 2003 17:51:01 -0000 1.125 +++ cerb_action.c 16 Jul 2003 06:31:59 -0000 1.126 @@ -1031,6 +1031,11 @@ if (val->v_prison == NULL) proc->p_flag &= ~P_JAILED; else { +#ifdef CB_DEBUG_PRISON + MCB_DEBUG("Increased reference count for jail %s from " + "%u.", val->v_prison->pr_host, + val->v_prison->pr_ref); +#endif val->v_prison->pr_ref++; proc->p_flag |= P_JAILED; } @@ -1038,6 +1043,11 @@ if (retv->v_prison == NULL) retv->v_size = 0; else { +#ifdef CB_DEBUG_PRISON + MCB_DEBUG("Decreased reference count for jail %s from " + "%u.", retv->v_prison->pr_host, + retv->v_prison->pr_ref); +#endif retv->v_prison->pr_ref--; retv->v_size = sizeof(struct prison); } |