diff --git a/sys/src/9/port/proc.c b/sys/src/9/port/proc.c index 2425f32a2..3b391252f 100644 --- a/sys/src/9/port/proc.c +++ b/sys/src/9/port/proc.c @@ -1213,6 +1213,7 @@ pexit(char *exitstr, int freemem) free(up->watchpt); up->watchpt = nil; } + up->nwatchpt = 0; qunlock(&up->debug); /* Sched must not loop for these locks */