1
0
Pavel Yurchenko 11 сар өмнө
parent
commit
646184e5dd

+ 1 - 1
Sources/SwiftSerial/SerialPort.swift

@@ -44,7 +44,7 @@ public class SerialPort {
 		#if os(Linux)
 		fileDescriptor = open(path, readWriteParam | O_NOCTTY)
 		#elseif os(OSX)
-		fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK)
+		fileDescriptor = open(path, readWriteParam | O_NOCTTY | O_EXLOCK | O_NONBLOCK)
 		#endif
 
 		// Throw error if open() failed