Skip to content

Commit

Permalink
Merge branch 'stable' into 'main'
Browse files Browse the repository at this point in the history
  • Loading branch information
nedko committed Jul 5, 2024
2 parents 8ec50c8 + 94b28d3 commit a55e144
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions daemon/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ static void loader_sigchld_handler(int signum)
pid_t pid;
struct loader_child *child_ptr;
int signal;
int errno_saved;

errno_saved = errno;

ASSERT(signum == SIGCHLD);

Expand Down Expand Up @@ -213,6 +216,8 @@ static void loader_sigchld_handler(int signum)
log_info("Child was stopped by signal %d", WSTOPSIG(status));
}
}

errno = errno_saved;
}

void loader_init(void (* on_child_exit)(pid_t pid, int exit_status))
Expand Down

0 comments on commit a55e144

Please sign in to comment.