Added docker-compose file
This commit is contained in:
@@ -174,8 +174,7 @@ int main(int argc, char **argv) {
|
||||
int fd;
|
||||
int lowestProc;
|
||||
|
||||
fd = accept(listener->fd, (struct sockaddr *) &listener->addr,
|
||||
&listener->addrlen);
|
||||
fd = acceptConnection(listener);
|
||||
if (fd < 0) {
|
||||
if (errno == ENOTSOCK || errno == EOPNOTSUPP ||
|
||||
errno == EINVAL) {
|
||||
|
||||
@@ -134,13 +134,13 @@ NULL
|
||||
}
|
||||
|
||||
*site = parseSitefile(sitefile);
|
||||
if (site == NULL) {
|
||||
if (*site == NULL) {
|
||||
fprintf(stderr, "Invalid sitefile %s\n", sitefile);
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
*listener = createListener((*site)->port, backlog);
|
||||
if (listener == NULL) {
|
||||
if (*listener == NULL) {
|
||||
fprintf(stderr, "Failed to create socket\n");
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user