shithub: riscv

Download patch

ref: cd1f44b5c0443119be845ad9558c079cfe0c5bb0
parent: 773be02aa18095e857c6659416d84951ceb60d41
author: aiju <devnull@localhost>
date: Mon Jun 12 15:19:05 EDT 2017

kernel: reset nwatchpt in pexit

--- a/sys/src/9/port/proc.c
+++ b/sys/src/9/port/proc.c
@@ -1213,6 +1213,7 @@
 		free(up->watchpt);
 		up->watchpt = nil;
 	}
+	up->nwatchpt = 0;
 	qunlock(&up->debug);
 
 	/* Sched must not loop for these locks */