diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-23 11:19:36 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-23 11:19:36 +0100 |
commit | 44b80d48af82fa8a5d632eb9bf6079c684a672ac (patch) | |
tree | 2e476aadb097705c7ca1ec119198f7397fc8f3f7 /sys/src/cmd/stats.c | |
parent | aa6673fcfbe3bc41078487f4ef5d5aea459cd953 (diff) |
stats: fix display->locking race
Diffstat (limited to 'sys/src/cmd/stats.c')
-rw-r--r-- | sys/src/cmd/stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/stats.c b/sys/src/cmd/stats.c index a58e62f50..5ded341d6 100644 --- a/sys/src/cmd/stats.c +++ b/sys/src/cmd/stats.c @@ -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(); |