From 9794003e5c6399a34585d3765ff1defe29d8ffb0 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Wed, 10 Jan 2007 10:15:04 +0000 Subject: [PATCH] signal returns SIG_ERR on error --- src/pazpar2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pazpar2.c b/src/pazpar2.c index e3c3649..c2d7d94 100644 --- a/src/pazpar2.c +++ b/src/pazpar2.c @@ -1,4 +1,4 @@ -/* $Id: pazpar2.c,v 1.23 2007-01-10 10:04:23 adam Exp $ */; +/* $Id: pazpar2.c,v 1.24 2007-01-10 10:15:04 adam Exp $ */ #include #include @@ -1400,7 +1400,7 @@ int main(int argc, char **argv) char *arg; int setport = 0; - if (signal(SIGPIPE, SIG_IGN) < 0) + if (signal(SIGPIPE, SIG_IGN) == SIG_ERR) yaz_log(YLOG_WARN|YLOG_ERRNO, "signal"); yaz_log_init(YLOG_DEFAULT_LEVEL, "pazpar2", 0); -- 1.7.10.4