git: 9front

Download patch

ref: 9a7e297263a068a22593721ae281785017cd9646
parent: a0da6afa1d36b8c1e9d8c75bdfe433377511dac1
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Wed Mar 23 07:19:36 EDT 2016

stats: fix display->locking race

--- a/sys/src/cmd/stats.c
+++ b/sys/src/cmd/stats.c
@@ -1355,11 +1355,11 @@
 		fprint(2, "stats: initdraw failed: %r\n");
 		exits("initdraw");
 	}
+	display->locking = 1;	/* tell library we're using the display lock */
 	colinit();
 	einit(Emouse|Ekeyboard);
 	startproc(inputproc, Inputproc);
 	pids[Mainproc] = getpid();
-	display->locking = 1;	/* tell library we're using the display lock */
 
 	resize();
 
--