diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-12 21:44:58 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2016-03-12 21:44:58 +0100 |
commit | 31c3941e872f71664ed9f0bc71341c38ec515dc2 (patch) | |
tree | e3d1b9303854c2c16720b6a3997e73ab6465a240 /sys/src | |
parent | bf04ac517328b9e80908a2a761af36b873002f47 (diff) |
ip/gping: set display->locking before starting mouseproc (race)
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/ip/gping.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/gping.c b/sys/src/cmd/ip/gping.c index ebc8d57ac..9b5ce2f59 100644 --- a/sys/src/cmd/ip/gping.c +++ b/sys/src/cmd/ip/gping.c @@ -1018,10 +1018,10 @@ main(int argc, char *argv[]) fprint(2, "%s: initdraw failed: %r\n", argv0); exits("initdraw"); } + display->locking = 1; /* tell library we're using the display lock */ colinit(); einit(Emouse); startproc(mouseproc, 0); - display->locking = 1; /* tell library we're using the display lock */ resize(); |