git: 9front

Download patch

ref: 274db93c5b7493dc02712e3489ec339442415e7c
parent: 3f2c597eecd0a5a12f0647583864e17892acb579
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 */
--