diff options
author | Josh Cartwright <joshc@ni.com> | 2015-08-31 11:35:34 -0500 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2015-09-17 21:19:47 +0200 |
commit | 10aeea73b434bf6b06d5ebb1631ac53b0b1076bb (patch) | |
tree | e434ed73aa47104816d64a338457ac5a2e6bb218 | |
parent | db7b824f8356e3cb74352c6f5faa999b6d43ebce (diff) | |
download | rt-tests-10aeea73b434bf6b06d5ebb1631ac53b0b1076bb.tar.gz |
cyclictest: fail if use_fifo && thread creation failed
Signed-off-by: Josh Cartwright <joshc@ni.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/cyclictest/cyclictest.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c index 5d83bb1..7346a32 100644 --- a/src/cyclictest/cyclictest.c +++ b/src/cyclictest/cyclictest.c @@ -2058,8 +2058,11 @@ int main(int argc, char **argv) fatal("failed to create thread %d: %s\n", i, strerror(status)); } - if (use_fifo) + if (use_fifo) { status = pthread_create(&fifo_threadid, NULL, fifothread, NULL); + if (status) + fatal("failed to create fifo thread: %s\n", strerror(status)); + } while (!shutdown) { char lavg[256]; |