github.com/cptmikhailov/conmon@v2.0.20+incompatible/src/ctr_exit.h (about) 1 #if !defined(CTR_EXIT_H) 2 #define CTR_EXIT_H 3 4 #include <sys/types.h> /* pid_t */ 5 #include <glib.h> /* gpointer, gboolean, GHashTable, and GPid */ 6 7 8 extern volatile pid_t container_pid; 9 extern volatile pid_t create_pid; 10 11 struct pid_check_data { 12 GHashTable *pid_to_handler; 13 GHashTable *exit_status_cache; 14 }; 15 16 void on_sigchld(G_GNUC_UNUSED int signal); 17 void on_sig_exit(int signal); 18 void container_exit_cb(G_GNUC_UNUSED GPid pid, int status, G_GNUC_UNUSED gpointer user_data); 19 gboolean check_child_processes_cb(gpointer user_data); 20 gboolean on_sigusr1_cb(gpointer user_data); 21 gboolean timeout_cb(G_GNUC_UNUSED gpointer user_data); 22 int get_exit_status(int status); 23 void runtime_exit_cb(G_GNUC_UNUSED GPid pid, int status, G_GNUC_UNUSED gpointer user_data); 24 void container_exit_cb(G_GNUC_UNUSED GPid pid, int status, G_GNUC_UNUSED gpointer user_data); 25 void do_exit_command(); 26 void reap_children(); 27 28 #endif // CTR_EXIT_H