Skip to content

Commit 4b4ec43

Browse files
committed
Don't need to set HANDLE_FLAG_INHERIT
1 parent cec2f99 commit 4b4ec43

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: Sources/Testing/ExitTests/SpawnProcess.swift

-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ func spawnExecutable(
141141
guard let handle else {
142142
throw SystemError(description: "A child process inherit a file handle without an associated Windows handle. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
143143
}
144-
guard SetHandleInformation(handle, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT) else {
145-
throw Win32Error(rawValue: GetLastError())
146-
}
147144
inheritedHandlesBuffer[i] = handle
148145
}
149146
}

0 commit comments

Comments
 (0)