kernel: reset nwatchpt in pexit

This commit is contained in:
aiju 2017-06-12 19:19:05 +00:00
parent 773be02aa1
commit cd1f44b5c0

View file

@ -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 */