Module: xenomai-2.4
Branch: master
Commit: 2dc536a28e1f1ed42d138cb853df0f0f4768a610
URL:    
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=2dc536a28e1f1ed42d138cb853df0f0f4768a610

Author: Peter Soetens <pe...@thesourceworks.com>
Date:   Fri Dec  4 23:07:40 2009 +0100

posix: Fix __wrap_select() when timeout happens.

---

 src/skins/posix/select.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/skins/posix/select.c b/src/skins/posix/select.c
index 3076d9c..428eed7 100644
--- a/src/skins/posix/select.c
+++ b/src/skins/posix/select.c
@@ -23,7 +23,7 @@ int __wrap_select (int __nfds, fd_set *__restrict __readfds,
                return __real_select(__nfds, __readfds,
                                     __writefds, __exceptfds, __timeout);
 
-       if (err > 0)
+       if (err >= 0)
                return err;
 
        errno = -err;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git

Reply via email to