diff options
author | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2010-05-25 00:38:23 +0000 |
---|---|---|
committer | cliechti <cliechti@f19166aa-fa4f-0410-85c2-fa1106f25c8a> | 2010-05-25 00:38:23 +0000 |
commit | 99e087d38f392e3d0b11f9430157312214d81e57 (patch) | |
tree | 7964279f7e31d505f24fea583a5774586fb27e76 | |
parent | f042c97eab3d2ba217e9d5fa0bd0adf039281b2b (diff) | |
download | pyserial-99e087d38f392e3d0b11f9430157312214d81e57.tar.gz |
fix SF:3006606 Nonblocking error - Unix platform
git-svn-id: http://svn.code.sf.net/p/pyserial/code/trunk/pyserial@363 f19166aa-fa4f-0410-85c2-fa1106f25c8a
-rw-r--r-- | CHANGES.txt | 4 | ||||
-rw-r--r-- | serial/serialposix.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 867a432..973d00f 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -382,6 +382,10 @@ Bugfixes: - [Bug 2925854] test.py produces exception with python 3.1 +Bugfixes (posix): + +- [BUG 3006606] Nonblocking error - Unix platform + Bugfixes (win32): - [Bug 2998169] Memory corruption at faster transmission speeds. diff --git a/serial/serialposix.py b/serial/serialposix.py index 23ee98c..44ebccf 100644 --- a/serial/serialposix.py +++ b/serial/serialposix.py @@ -568,7 +568,7 @@ class PosixSerial(SerialBase): """internal - not portable!""" if self.fd is None: raise portNotOpenError - fcntl.fcntl(self.fd, FCNTL.F_SETFL, FCNTL.O_NONBLOCK) + fcntl.fcntl(self.fd, FCNTL.F_SETFL, os.O_NONBLOCK) def fileno(self): """For easier use of the serial port instance with select. |