mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-28 15:28:30 +00:00
Make vim startup faster
It appears that GetFileAttributes(u"\\etc\\passwd") can take two seconds on Windows 10 at unpredictable times for reasons which are mysterious to me. Let's try avoiding that path entirely and pray to Microsoft it works
This commit is contained in:
parent
deb5e07b5a
commit
a5c0189bf6
5 changed files with 25 additions and 15 deletions
|
@ -631,11 +631,11 @@ static dontinline bool foreign_compile(char exe[hasatleast PATH_MAX]) {
|
|||
errno = err;
|
||||
return false;
|
||||
}
|
||||
while (waitpid(pid, &ws, 0) == -1) {
|
||||
if (errno != EINTR) {
|
||||
unlink(tmp);
|
||||
return false;
|
||||
}
|
||||
if (waitpid(pid, &ws, 0) == -1) {
|
||||
// signals and cancelation are blocked
|
||||
// therefore this must be a real error
|
||||
unlink(tmp);
|
||||
return false;
|
||||
}
|
||||
if (ws) {
|
||||
unlink(tmp);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue