On 10/18/2013 02:50 PM, Kim De Mey wrote:
Panic if one of the pipe() system calls fails. To indicate that there
is an underlying problem.
Signed-off-by: Kim De Mey <kim.de...@gmail.com>
---
lib/copperplate/notifier.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/copperplate/notifier.c b/lib/copperplate/notifier.c
--- a/lib/copperplate/notifier.c
+++ b/lib/copperplate/notifier.c
@@ -144,12 +144,12 @@ int notifier_init(struct notifier *nf,
int fd;
if (pipe(nf->psfd) < 0)
- return __bt(-errno);
+ panic("failed to create file descriptors");
if (pipe(nf->pwfd) < 0) {
__STD(close(nf->psfd[0]));
__STD(close(nf->psfd[1]));
- return __bt(-errno);
+ panic("failed to create file descriptors");
}
nf->callback = callback;
Nack. This routine returns a status code, the caller should check it.
--
Philippe.
_______________________________________________
Xenomai mailing list
Xenomai@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai