Commit 66240359 authored by Philippe Gerum's avatar Philippe Gerum Committed by Jan Kiszka

demo/posix/cobalt: add missing __STD() annotation to sigwait()

We want to wait for ^C or any hangup condition received from the root
stage, make sure to annotate as __STD(sigwait()) to bypass symbol
wrapping.
Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
Signed-off-by: Jan Kiszka's avatarJan Kiszka <jan.kiszka@siemens.com>
parent 35bbba18
Pipeline #5397 passed with stage
in 30 minutes and 22 seconds
......@@ -211,7 +211,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(svtid);
pthread_cancel(cltid);
pthread_join(svtid, NULL);
......
......@@ -176,7 +176,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(svtid);
pthread_cancel(cltid);
pthread_join(svtid, NULL);
......
......@@ -228,7 +228,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(svtid);
pthread_cancel(cltid);
pthread_join(svtid, NULL);
......
......@@ -184,7 +184,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(svtid);
pthread_cancel(cltid);
pthread_join(svtid, NULL);
......
......@@ -238,7 +238,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(rt);
pthread_cancel(nrt);
pthread_join(rt, NULL);
......
......@@ -317,7 +317,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(rt1);
pthread_cancel(rt2);
pthread_cancel(nrt);
......
......@@ -244,7 +244,7 @@ int main(int argc, char **argv)
if (errno)
fail("pthread_create");
sigwait(&set, &sig);
__STD(sigwait(&set, &sig));
pthread_cancel(rt);
pthread_cancel(nrt);
pthread_join(rt, NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment