Esempio n. 1
0
static SELECT_RESPONSE_t console_stdin_closed(void *group, int socket, void *d)
{
  /* When the stdin pipe is closed, the stdin driver signals the end. */
  message_post_shutdown();

  return SELECT_CLOSE_REMOVE;
}
Esempio n. 2
0
static void cleanup(void)
{
  LOG_WARNING("Terminating");

  message_post_shutdown();
  message_cleanup();

  if(group)
    select_group_destroy(group);

  if(driver_console)
    driver_console_destroy(driver_console);
  if(driver_command)
    driver_command_destroy(driver_command);
  if(driver_dns)
    driver_dns_destroy(driver_dns);
  if(driver_exec)
    driver_exec_destroy(driver_exec);
  if(driver_listener)
    driver_listener_destroy(driver_listener);
  if(driver_ping)
    driver_ping_destroy(driver_ping);

  print_memory();
}
Esempio n. 3
0
static SELECT_RESPONSE_t exec_closed_callback(void *group, int socket, void *d)
{
  message_post_shutdown();

  return SELECT_CLOSE_REMOVE;
}