Logo Search packages:      
Sourcecode: ladish version File versions  Download package

void ladish_app_supervisor_stop ( ladish_app_supervisor_handle  supervisor_handle )

Initiate stop of all apps owned by this supervisor

Parameters:
[in]supervisor_handlesupervisor object handle

Definition at line 771 of file app_supervisor.c.

References LADISH_APP_STATE_STOPPING.

{
  struct list_head * node_ptr;
  struct ladish_app * app_ptr;

  list_for_each(node_ptr, &supervisor_ptr->applist)
  {
    app_ptr = list_entry(node_ptr, struct ladish_app, siblings);
    if (app_ptr->pid != 0)
    {
      log_info("terminating '%s'...", app_ptr->name);
      ladish_app_send_signal(app_ptr, SIGTERM, false);
      app_ptr->autorun = true;
      app_ptr->state = LADISH_APP_STATE_STOPPING;
    }
  }
}

Generated by  Doxygen 1.6.0   Back to index