X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fexecute.h;h=4ed79f0d8b1d18f3fec7ff48db0e6383c6a5a787;hb=6ea832a20700f5282c08c70f38422c6ab290a0b5;hp=208fe4ad5e1660710cd1f99181f0d7e954885520;hpb=cd25cce98f5cc930202212c3c9c13605c09698b4;p=elogind.git diff --git a/src/execute.h b/src/execute.h index 208fe4ad5..4ed79f0d8 100644 --- a/src/execute.h +++ b/src/execute.h @@ -123,6 +123,10 @@ struct ExecContext { char *tty_path; + bool tty_reset; + bool tty_vhangup; + bool tty_vt_disallocate; + /* Since resolving these names might might involve socket * connections and we don't want to deadlock ourselves these * names are resolved on execution only and in the child @@ -198,11 +202,12 @@ int exec_command_set(ExecCommand *c, const char *path, ...); void exec_context_init(ExecContext *c); void exec_context_done(ExecContext *c); void exec_context_dump(ExecContext *c, FILE* f, const char *prefix); +void exec_context_tty_reset(const ExecContext *context); int exec_context_load_environment(const ExecContext *c, char ***l); void exec_status_start(ExecStatus *s, pid_t pid); -void exec_status_exit(ExecStatus *s, pid_t pid, int code, int status, const char *utmp_id); +void exec_status_exit(ExecStatus *s, ExecContext *context, pid_t pid, int code, int status); void exec_status_dump(ExecStatus *s, FILE *f, const char *prefix); const char* exec_output_to_string(ExecOutput i);