ip/gping: set display->locking before starting mouseproc (race)
This commit is contained in:
parent
bf04ac5173
commit
31c3941e87
1 changed files with 1 additions and 1 deletions
|
@ -1018,10 +1018,10 @@ main(int argc, char *argv[])
|
||||||
fprint(2, "%s: initdraw failed: %r\n", argv0);
|
fprint(2, "%s: initdraw failed: %r\n", argv0);
|
||||||
exits("initdraw");
|
exits("initdraw");
|
||||||
}
|
}
|
||||||
|
display->locking = 1; /* tell library we're using the display lock */
|
||||||
colinit();
|
colinit();
|
||||||
einit(Emouse);
|
einit(Emouse);
|
||||||
startproc(mouseproc, 0);
|
startproc(mouseproc, 0);
|
||||||
display->locking = 1; /* tell library we're using the display lock */
|
|
||||||
|
|
||||||
resize();
|
resize();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue