Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[fix] re-assign restart_child signal handler after each SIGUSR1 signal
  • Loading branch information
jcrugzz committed Aug 23, 2013
1 parent 93443bd commit a745e1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aeternum.c
Expand Up @@ -121,6 +121,8 @@ void restart_child(int signal_status) {
uv_process_kill(&child_req, SIGTERM);
sleep(5); // Just `sleep` here, not doing anything important anyway.
uv_process_kill(&child_req, SIGKILL);
// Re-assign signal handler
signal(SIGUSR1, restart_child);
}

int stdio_redirect(char *dest, int fd) {
Expand Down

0 comments on commit a745e1a

Please sign in to comment.