Added docker-compose file

This commit is contained in:
Nate Choe
2022-04-11 01:56:49 -05:00
parent 8914e57eec
commit 0a177b6d91
19 changed files with 34 additions and 27 deletions

View File

@@ -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) {

View File

@@ -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);
}