From: Adam Dickmeiss Date: Wed, 10 Jan 2007 10:15:04 +0000 (+0000) Subject: signal returns SIG_ERR on error X-Git-Tag: rather.stable.2007.01.11~19 X-Git-Url: http://jsfdemo.indexdata.com/?a=commitdiff_plain;h=9794003e5c6399a34585d3765ff1defe29d8ffb0;p=pazpar2-moved-to-github.git signal returns SIG_ERR on error --- 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);