Dolda2000 GitWeb
/
doldaconnect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43779f5
)
Fixed error reporting bug in dolmod.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 16 Nov 2007 01:56:27 +0000
(
02:56
+0100)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Fri, 16 Nov 2007 01:56:27 +0000
(
02:56
+0100)
lib/python/dolmod.c
patch
|
blob
|
blame
|
history
diff --git
a/lib/python/dolmod.c
b/lib/python/dolmod.c
index
238f886
..
1418174
100644
(file)
--- a/
lib/python/dolmod.c
+++ b/
lib/python/dolmod.c
@@
-189,11
+189,11
@@
static PyObject *mod_select(PyObject *self, PyObject *args)
return(NULL);
}
if(((pfd.revents & POLLIN) && dc_handleread()) || ((pfd.revents & POLLOUT) && dc_handlewrite())) {
- if(errno == 0) {
- fd = -1;
+ fd = -1;
+ if(errno == 0)
Py_RETURN_FALSE;
- }
PyErr_SetFromErrno(PyExc_OSError);
+ return(NULL);
}
if(ret > 0)
Py_RETURN_TRUE;