Add a "flock" promise. If there are no local cache files for the user,

fontconfig may try to lock the shared cache files using fcntl(2).

ok matthieu
This commit is contained in:
tb 2016-10-26 20:08:14 +00:00
parent 57e2d19903
commit ba05d4bd05

View File

@ -616,7 +616,7 @@ StartDisplay (struct display *d)
if (!WaitForServer (d))
exit (OPENFAILED_DISPLAY);
SetWindowPath(d);
if (pledge("stdio rpath cpath wpath fattr proc dns inet unix exec prot_exec getpw id", NULL) != 0)
if (pledge("stdio rpath cpath wpath fattr flock proc dns inet unix exec prot_exec getpw id", NULL) != 0)
exit(OPENFAILED_DISPLAY);
ManageSession (d);
exit (REMANAGE_DISPLAY);