Skip to content

Commit

Permalink
Fixed sigchld handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
robert72127 authored Jun 3, 2023
1 parent 69368ce commit 5f1df17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void cleanup(int signal) {
}

int main(int argc, char **argv) {

signal(SIGCHLD, child_handler);

char *buffer = malloc(sizeof(char) * BUFFER_SIZE);
struct response *resp = malloc(sizeof(struct response));
Expand Down

0 comments on commit 5f1df17

Please sign in to comment.