Refactoring

This commit is contained in:
o9000
2017-08-31 18:55:22 +02:00
parent 1e45abe988
commit 0c754affd9
8 changed files with 274 additions and 246 deletions

View File

@@ -98,6 +98,16 @@ void sigchld_handler_async()
}
}
void handle_sigchld_events()
{
if (sigchild_pipe_valid) {
char buffer[1];
while (read(sigchild_pipe[0], buffer, sizeof(buffer)) > 0) {
sigchld_handler_async();
}
}
}
void init_signals_postconfig()
{
gboolean need_sigchld = FALSE;