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:
4b646f9
)
Exit when address is already in use (HTTP binding).
author
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 15 May 2007 08:51:49 +0000
(08:51 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Tue, 15 May 2007 08:51:49 +0000
(08:51 +0000)
src/http.c
patch
|
blob
|
history
diff --git
a/src/http.c
b/src/http.c
index
189cbe3
..
e46d2ae
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-1,4
+1,4
@@
-/* $Id: http.c,v 1.30 2007-04-23 08:56:52 marc Exp $
+/* $Id: http.c,v 1.31 2007-05-15 08:51:49 adam Exp $
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
Copyright (c) 2006-2007, Index Data.
This file is part of Pazpar2.
@@
-1034,9
+1034,15
@@
void http_init(const char *addr)
abort();
if (bind(l, (struct sockaddr *) &myaddr, sizeof myaddr) < 0)
abort();
if (bind(l, (struct sockaddr *) &myaddr, sizeof myaddr) < 0)
+ {
yaz_log(YLOG_FATAL|YLOG_ERRNO, "bind");
yaz_log(YLOG_FATAL|YLOG_ERRNO, "bind");
+ exit(1);
+ }
if (listen(l, SOMAXCONN) < 0)
if (listen(l, SOMAXCONN) < 0)
+ {
yaz_log(YLOG_FATAL|YLOG_ERRNO, "listen");
yaz_log(YLOG_FATAL|YLOG_ERRNO, "listen");
+ exit(1);
+ }
c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT);
pazpar2_add_channel(c);
c = iochan_create(l, http_accept, EVENT_INPUT | EVENT_EXCEPT);
pazpar2_add_channel(c);