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

Author: Philippe Gerum <r...@xenomai.org>
Date:   Thu Jun  6 14:10:40 2013 +0200

cobalt/thread: honor pthread_kill(tid, 0)

---

 kernel/cobalt/thread.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/kernel/cobalt/thread.c b/kernel/cobalt/thread.c
index 8542384..9806dc9 100644
--- a/kernel/cobalt/thread.c
+++ b/kernel/cobalt/thread.c
@@ -1025,6 +1025,10 @@ int cobalt_thread_kill(unsigned long tid, int sig)
        pthread = thread_find(&hkey);
        if (pthread == NULL)
                return -ESRCH;
+
+       if (sig == 0)   /* Check for existence only. */
+               return 0;
+
        /*
         * We have to take care of self-suspension, when the
         * underlying shadow thread is currently relaxed. In that


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

Reply via email to