projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bdf63c9
)
signal returns SIG_ERR on error
author
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:15:04 +0000
(10:15 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Wed, 10 Jan 2007 10:15:04 +0000
(10:15 +0000)
src/pazpar2.c
patch
|
blob
|
history
diff --git
a/src/pazpar2.c
b/src/pazpar2.c
index
e3c3649
..
c2d7d94
100644
(file)
--- 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 <stdlib.h>
#include <stdio.h>
@@
-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);