projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d7785b
)
python/ovs/socket_util: Fix error path in set_nonblocking.
author
Ben Pfaff
<blp@nicira.com>
Tue, 20 Nov 2012 15:45:56 +0000
(07:45 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 20 Nov 2012 15:45:56 +0000
(07:45 -0800)
'e' is an exception, not a socket, so get_exception_errno() is the
appropriate function to obtain an error code from it.
Signed-off-by: Ben Pfaff <blp@nicira.com>
Acked-by: Kyle Mestery <kmestery@cisco.com>
python/ovs/socket_util.py
patch
|
blob
|
history
diff --git
a/python/ovs/socket_util.py
b/python/ovs/socket_util.py
index 1fc80fd3a1add02446f26e3d5153e3b45fd855e4..f54b9040ae051da61d6382d8fdda29152075ef6e 100644
(file)
--- a/
python/ovs/socket_util.py
+++ b/
python/ovs/socket_util.py
@@
-182,7
+182,7
@@
def set_nonblocking(sock):
sock.setblocking(0)
except socket.error, e:
vlog.err("could not set nonblocking mode on socket: %s"
- % os.strerror(get_
socket_error
(e)))
+ % os.strerror(get_
exception_errno
(e)))
def set_dscp(sock, dscp):