| author | |
| committer | |
| log | 95242cc43132c7b6aeb2f7171389075859aba008 |
| tree | 90794f4ef48e76764daf484ff3cc4def70902a76 |
| parent | 8efcfeaf1e6db6e26d31132bbd2eb3317d9749bf |
2 files changed, 4 insertions(+), 4 deletions(-)
src/link.zig+2-2| ... | ... | @@ -616,13 +616,13 @@ pub const File = struct { |
| 616 | 616 | &coff.mf |
| 617 | 617 | else |
| 618 | 618 | unreachable; |
| 619 | mf.file = for (0..2) |_| break base.emit.root_dir.handle.openFile(base.emit.sub_path, .{ | |
| 619 | mf.file = for (0..10) |_| break base.emit.root_dir.handle.openFile(base.emit.sub_path, .{ | |
| 620 | 620 | .mode = .read_write, |
| 621 | 621 | }) catch |err| switch (err) { |
| 622 | 622 | error.AccessDenied => switch (builtin.os.tag) { |
| 623 | 623 | .windows => { |
| 624 | 624 | // give the kernel a chance to finish closing the executable handle |
| 625 | std.os.windows.kernel32.Sleep(1); | |
| 625 | std.os.windows.kernel32.Sleep(10); | |
| 626 | 626 | continue; |
| 627 | 627 | }, |
| 628 | 628 | else => return error.AccessDenied, |
test/standalone/windows_spawn/main.zig+2-2| ... | ... | @@ -71,10 +71,10 @@ pub fn main() anyerror!void { |
| 71 | 71 | try testExec(allocator, "heLLo", "hello from exe\n"); |
| 72 | 72 | |
| 73 | 73 | // now rename the exe to not have an extension |
| 74 | for (0..2) |_| break tmp.dir.rename("hello.exe", "hello") catch |err| switch (err) { | |
| 74 | for (0..10) |_| break tmp.dir.rename("hello.exe", "hello") catch |err| switch (err) { | |
| 75 | 75 | error.AccessDenied => { |
| 76 | 76 | // give the kernel a chance to finish closing the executable handle |
| 77 | std.os.windows.kernel32.Sleep(1); | |
| 77 | std.os.windows.kernel32.Sleep(10); | |
| 78 | 78 | continue; |
| 79 | 79 | }, |
| 80 | 80 | else => |e| return e, |