ip/gping: set display->locking before starting mouseproc (race)

This commit is contained in:
cinap_lenrek 2016-03-12 21:44:58 +01:00
parent bf04ac5173
commit 31c3941e87

View file

@ -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();