Skip to content

Commit 755fc6c

Browse files
committed
oh my
1 parent 34452e8 commit 755fc6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Testing/Support/FileHandle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,9 +704,9 @@ func setFD_CLOEXEC(_ flag: Bool, onFileDescriptor fd: CInt) throws {
704704
throw CError(rawValue: swt_errno())
705705
case let oldValue:
706706
let newValue = if flag {
707-
oldValue & ~FD_CLOEXEC
708-
} else {
709707
oldValue | FD_CLOEXEC
708+
} else {
709+
oldValue & ~FD_CLOEXEC
710710
}
711711
if oldValue == newValue {
712712
// No need to make a second syscall as nothing has changed.

0 commit comments

Comments
 (0)