projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace redundant contact information with a license summary
[privoxy.git]
/
jcc.c
diff --git
a/jcc.c
b/jcc.c
index
2a8b02c
..
b1d275c
100644
(file)
--- a/
jcc.c
+++ b/
jcc.c
@@
-1,4
+1,4
@@
-const char jcc_rcs[] = "$Id: jcc.c,v 1.42
0 2012/12/07 12:45:20
fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.42
4 2013/03/01 17:38:34
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
@@
-3643,7
+3643,7
@@
int main(int argc, char **argv)
* on failure.
*
* Parameters :
* on failure.
*
* Parameters :
- * 1 : haddr = Host addres to bind to. Use NULL to bind to
+ * 1 : haddr = Host addres
s
to bind to. Use NULL to bind to
* INADDR_ANY.
* 2 : hport = Specifies port to bind to.
*
* INADDR_ANY.
* 2 : hport = Specifies port to bind to.
*
@@
-3682,6
+3682,15
@@
static jb_socket bind_port_helper(const char *haddr, int hport)
return JB_INVALID_SOCKET;
}
return JB_INVALID_SOCKET;
}
+#ifndef _WIN32
+ if (bfd >= FD_SETSIZE)
+ {
+ log_error(LOG_LEVEL_FATAL,
+ "Bind socket number too high to use select(): %d >= %d",
+ bfd, FD_SETSIZE);
+ }
+#endif
+
if (haddr == NULL)
{
log_error(LOG_LEVEL_INFO, "Listening on port %d on all IP addresses",
if (haddr == NULL)
{
log_error(LOG_LEVEL_INFO, "Listening on port %d on all IP addresses",