diff options
| -rwxr-xr-x | PICA_node.c | 5 | ||||
| -rw-r--r-- | PICA_nodewait.c | 2 |
2 files changed, 5 insertions, 2 deletions
diff --git a/PICA_node.c b/PICA_node.c index ad4307d..9a8264a 100755 --- a/PICA_node.c +++ b/PICA_node.c @@ -2573,6 +2573,7 @@ struct nodewait *kill_ptr = 0, *nw = nodewait_list; while(nw) { + PICA_debug3("checking nodewait pointer %p", nw); if (PICA_NODEWAIT_FINISHED_OK == nw->state) { struct nodelink *nlp; @@ -2586,7 +2587,7 @@ while(nw) if (mp) { mp->tail[0] = PICA_PROTO_VER_HIGH; - mp->tail[0] = PICA_PROTO_VER_LOW; + mp->tail[1] = PICA_PROTO_VER_LOW; } } kill_ptr = nw; @@ -2602,7 +2603,7 @@ while(nw) if (kill_ptr) { - nodewait_list_delete(nw); + nodewait_list_delete(kill_ptr); kill_ptr = 0; } } diff --git a/PICA_nodewait.c b/PICA_nodewait.c index 2716d18..50d02f3 100644 --- a/PICA_nodewait.c +++ b/PICA_nodewait.c @@ -43,6 +43,8 @@ void nodewait_list_delete(struct nodewait *nw) struct nodewait **pp = &nodewait_list; struct nodewait *p = nodewait_list; +PICA_debug3("nodewait_list_delete(%p)", nw); + while(p) { if (p == nw) |
