Skip to content

Commit

Permalink
Avoid usage of unused variable (#128)
Browse files Browse the repository at this point in the history
Resolves: #127

Signed-off-by: Sergio Arroutbi <[email protected]>
  • Loading branch information
sarroutbi committed Jan 11, 2024
1 parent 9e4f9a6 commit c39b6dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,10 +178,9 @@ static void spawn_process(int fd, const char *jwkdir,

static void handle_child(int sig)
{
pid_t pid;
int status;

while ((pid = waitpid(-1, &status, WNOHANG)) > 0);
while ((waitpid(-1, &status, WNOHANG)) > 0);
}

int run_service(const char *jwkdir, int port, process_request_func pfunc)
Expand Down

0 comments on commit c39b6dd

Please sign in to comment.