~jamesodhunt/upstart/upstart-shutdown-temp

« back to all changes in this revision

Viewing changes to init/job_process.h

  • Committer: James Hunt
  • Date: 2013-02-08 16:15:23 UTC
  • Revision ID: james.hunt@ubuntu.com-20130208161523-bw3pknc5ef8o4su0
* dbus/com.ubuntu.Upstart.xml: Added 'EndSession' method.
* init/Makefile.am: Updated for quiesce.[ch].
* init/conf.c: conf_destroy(): Cleanup function.
* init/conf.h: Prototype.
* init/control.c: control_end_session(): 'EndSession' implemenation.
* init/control.h: Include.
* init/events.h: Added SESSION_END_EVENT.
* init/job_class.c: job_class_max_kill_timeout(): New function.
* init/job_class.h: Prototype.
* init/job_process.c:
  - Added disable_respawn to disallow respawns.
  - job_process_jobs_running(): New function.
  - job_process_stop_all(): New function.
  - job_process_terminated(): Honours disable_respawn.
* init/job_process.h: Prototypes.
* init/main.c:
  - Typos.
  - term_handler(): Quiesce rather than re-exec on receipt of SIGTERM
    when running as a Session Init.
  - main(): Make quiesce() handle cleanup.
* init/man/init.8: Update for Session Init SIGTERM handling.
* init/man/startup.7: Update for Session Init.
* init/session.c: session_destroy(): New function.
* init/session.h: Prototype.
* init/man/session-end.7: New man page.
* init/quiesce.[ch]: New files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
#define JOB_PROCESS_LOG_FILE_EXT ".log"
64
64
#endif
65
65
 
66
 
 
67
66
/**
68
67
 * JobProcessErrorType:
69
68
 *
151
150
 
152
151
void   job_process_adj_kill_timer  (Job *job, time_t due);
153
152
 
 
153
int    job_process_jobs_running (void);
 
154
 
 
155
void   job_process_stop_all (void);
 
156
 
154
157
NIH_END_EXTERN
155
158
 
156
159
#endif /* INIT_JOB_PROCESS_H */