Skip to content

Commit 8c14bb8

Browse files
committed
fix naming and windows
1 parent 842f1da commit 8c14bb8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/std/os.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4843,9 +4843,9 @@ pub fn lseek_CUR_get(fd: fd_t) SeekError!u64 {
48434843
}
48444844
}
48454845

4846-
const UnsetFileInheritanceError = FcntlError || windows.SetHandleInformationError;
4846+
const DisableFileInheritanceError = FcntlError || windows.SetHandleInformationError;
48474847

4848-
pub inline fn disableFileInheritance(file_handle: fd_t) UnsetFileInheritanceError!void {
4848+
pub inline fn disableFileInheritance(file_handle: fd_t) DisableFileInheritanceError!void {
48494849
if (builtin.os.tag == .windows) {
48504850
try windows.SetHandleInformation(file_handle, windows.HANDLE_FLAG_INHERIT, 0);
48514851
} else {

test/standalone/childprocess_extrapipe/parent.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ pub fn main() !void {
8989
if (builtin.target.os.tag == .windows) {
9090
var handle_flags: windows.DWORD = undefined;
9191
try windows.GetHandleInformation(pipe[1].?, &handle_flags);
92-
std.debug.assert(handle_flags & windows.HANDLE_FLAG_INHERIT != 0);
92+
std.debug.assert(handle_flags & windows.HANDLE_FLAG_INHERIT == 0);
9393
} else {
9494
const fcntl_flags = try os.fcntl(pipe[1], os.F.GETFD, 0);
9595
try std.testing.expect((fcntl_flags & os.FD_CLOEXEC) != 0);

0 commit comments

Comments
 (0)