stats: fix display->locking race

This commit is contained in:
cinap_lenrek 2016-03-23 11:19:36 +01:00
parent aa6673fcfb
commit 44b80d48af

View file

@ -1355,11 +1355,11 @@ main(int argc, char *argv[])
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();