commit 6c6c7a0ed7de7ec3c4329c6f9892862a4f065451 from: Omar Polo date: Mon Dec 28 17:01:06 2020 UTC rename cgi_setpoll_on_* to cgi_poll_on_* commit - b3deee7b389408c9c2248fecfd2d1c6bc47e9c97 commit + 6c6c7a0ed7de7ec3c4329c6f9892862a4f065451 blob - 912bc8a40a649bd467649300e5748a34a80ba7a3 blob + ac08b3ce0c488b0b2dd81301fc14ac0345feb7a4 --- gmid.c +++ gmid.c @@ -349,7 +349,7 @@ childerr: } void -cgi_setpoll_on_child(struct pollfd *fds, struct client *c) +cgi_poll_on_child(struct pollfd *fds, struct client *c) { int fd; @@ -365,7 +365,7 @@ cgi_setpoll_on_child(struct pollfd *fds, struct client } void -cgi_setpoll_on_client(struct pollfd *fds, struct client *c) +cgi_poll_on_client(struct pollfd *fds, struct client *c) { int fd; @@ -384,7 +384,7 @@ handle_cgi(struct pollfd *fds, struct client *c) ssize_t r; /* ensure c->fd is the child and fds->fd the client */ - cgi_setpoll_on_client(fds, c); + cgi_poll_on_client(fds, c); while (1) { if (c->len == 0) { @@ -392,7 +392,7 @@ handle_cgi(struct pollfd *fds, struct client *c) goto end; if (r == -1) { if (errno == EAGAIN || errno == EWOULDBLOCK) { - cgi_setpoll_on_child(fds, c); + cgi_poll_on_child(fds, c); return; } goto end; blob - a691a7c604ae17d7c8089d3ff01c97764219ef29 blob + c8f451487ccf97c59f4e955bb1c1b35b0bd92d86 --- gmid.h +++ gmid.h @@ -136,8 +136,8 @@ int check_path(struct client*, const char*, int*); int check_for_cgi(char *, char*, struct pollfd*, struct client*); int open_file(char*, char*, struct pollfd*, struct client*); int start_cgi(const char*, const char*, const char*, struct pollfd*, struct client*); -void cgi_setpoll_on_child(struct pollfd*, struct client*); -void cgi_setpoll_on_client(struct pollfd*, struct client*); +void cgi_poll_on_child(struct pollfd*, struct client*); +void cgi_poll_on_client(struct pollfd*, struct client*); void handle_cgi(struct pollfd*, struct client*); void send_file(char*, char*, struct pollfd*, struct client*); void send_dir(char*, struct pollfd*, struct client*);