Index: ossp-pkg/pth/pth_event.c RCS File: /v/ossp/cvs/ossp-pkg/pth/pth_event.c,v rcsdiff -q -kk '-r1.55' '-r1.56' -u '/v/ossp/cvs/ossp-pkg/pth/pth_event.c,v' 2>/dev/null --- pth_event.c 2001/03/24 14:51:04 1.55 +++ pth_event.c 2001/11/30 12:37:29 1.56 @@ -413,8 +413,10 @@ ev = ev_ring; occurred = 0; do { - occurred++; - pth_debug2("pth_wait: occurred event 0x%lx", (unsigned long)ev); + if (ev->ev_occurred) { + pth_debug2("pth_wait: occurred event 0x%lx", (unsigned long)ev); + occurred++; + } ev = ev->ev_next; } while (ev != ev_ring);