Module: xenomai-3
Branch: master
Commit: 1d78e031431208fd0668918f1a7fd9fa3493e1d3
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=1d78e031431208fd0668918f1a7fd9fa3493e1d3

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jun 11 09:30:30 2015 +0200

lib/cobalt: fix error status

---

 lib/cobalt/thread.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 57b5bcd..580c254 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -234,7 +234,7 @@ int pthread_create_ex(pthread_t *ptid_r,
                                *ptid_r = lptid;
                        break;
                } else if (errno == ETIMEDOUT) {
-                       ret = -EAGAIN;
+                       ret = EAGAIN;
                        break;
                }
                ret = -errno;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to