[Xenomai-git] Philippe Gerum : copperplate: fix cluster probe routine
Module: xenomai-3 Branch: master Commit: 3882b27541dff4887374845bce9d01912f7dc61f URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3882b27541dff4887374845bce9d01912f7dc61f Author: Philippe Gerum r...@xenomai.org Date: Sun Mar 15 12:32:00 2015 +0100 copperplate: fix cluster probe routine --- lib/copperplate/cluster.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/copperplate/cluster.c b/lib/copperplate/cluster.c index 80923bc..0dda986 100644 --- a/lib/copperplate/cluster.c +++ b/lib/copperplate/cluster.c @@ -177,7 +177,7 @@ static int cluster_probe(struct hashobj *hobj) * Over Cobalt, the main thread is always shadowed, therefore * we may use Cobalt's kill() service to probe for it. */ - return __RT(kill(cobj-cnode, 0)); + return __RT(kill(cobj-cnode, 0)) == 0; } int cluster_addobj(struct cluster *c, const char *name, ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git
[Xenomai-git] Philippe Gerum : copperplate: fix cluster probe routine
Module: xenomai-3 Branch: next Commit: 3882b27541dff4887374845bce9d01912f7dc61f URL: http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=3882b27541dff4887374845bce9d01912f7dc61f Author: Philippe Gerum r...@xenomai.org Date: Sun Mar 15 12:32:00 2015 +0100 copperplate: fix cluster probe routine --- lib/copperplate/cluster.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/copperplate/cluster.c b/lib/copperplate/cluster.c index 80923bc..0dda986 100644 --- a/lib/copperplate/cluster.c +++ b/lib/copperplate/cluster.c @@ -177,7 +177,7 @@ static int cluster_probe(struct hashobj *hobj) * Over Cobalt, the main thread is always shadowed, therefore * we may use Cobalt's kill() service to probe for it. */ - return __RT(kill(cobj-cnode, 0)); + return __RT(kill(cobj-cnode, 0)) == 0; } int cluster_addobj(struct cluster *c, const char *name, ___ Xenomai-git mailing list Xenomai-git@xenomai.org http://www.xenomai.org/mailman/listinfo/xenomai-git