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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Tue Jan  7 16:55:39 2014 +0100

lib/cobalt: thread: do not join failed thread uselessly

---

 lib/cobalt/thread.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/lib/cobalt/thread.c b/lib/cobalt/thread.c
index 5fabf9a..190d5c7 100644
--- a/lib/cobalt/thread.c
+++ b/lib/cobalt/thread.c
@@ -362,8 +362,6 @@ int pthread_create_ex(pthread_t *tid,
                        break;
                }
                ret = -errno;
-               if (detachstate == PTHREAD_CREATE_JOINABLE)
-                       pthread_join(ltid, NULL);
                panic("regular sem_wait() failed with %s", symerror(ret));
        }
 


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

Reply via email to