Pavel Yurchenko преди 11 месеца
родител
ревизия
646184e5dd
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/SwiftSerial/SerialPort.swift

+ 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